Wow!

This has been quite a thread so far. Sorry for not joining in the discussion sooner.
Let me see if I can help about the dates issue.
Looking at
http://www.torrevieja-weather.net/CUtags.php?sce=dump
shows
$WX['tempunit'] = '°C';
$WX['pressunit'] = 'mb';
$WX['rainunit'] = 'mm';
$WX['windunit'] = 'km/h';
$WX['windrununit'] = 'km';
$WX['date'] = '08.10.2011';
$WX['time'] = '21:55 on 08 oktober 2011';
$WX['timehhmmss'] = '21:55:01';
$WX['day'] = '08';
$WX['dayname'] = 'lørdag';
...
$WX['OsLanguage'] = 'Spanish';
The highlighted values are quite interesting. The Date is in dot-format (which is supported by both the current CU-defs.php and ajaxCUwx.js) without mods.
Looking further at
http://www.torrevieja-weather.net/wxind ... w=settings
and a view-source shows
[monthNames] => Array
(
[0] => January
[1] => February
[2] => March
[3] => April
[4] => May
[5] => June
[6] => July
[7] => August
[8] => September
[9] => October
[10] => November
[11] => December
)
which means the dates used by Cumulus are expected to be in
English, yet despite your OS setting of 'Spanish'
your dates are in Norwegian (month='oktober', dayname='lørdag').
Do you have Cumulus set to use Norwegian?
If so, then changing your Settings.php
Code: Select all
$SITE['monthNames'] = array( // for wxastronomy page .. replace with month names in your language
'January','February','March','April','May','June',
'July','August','September','October','November','December'
);
to the Norwegian (for your current setup)
Code: Select all
$SITE['monthNames'] = array( // for wxastronomy page .. replace with month names in your language
"Januar","Februar","Mars","April","Mai","Juni",
"Juli","August","September","Oktober","November","Desember"
);
will fix the current dates issue.
Or if you
change Cumulus to use Spanish then use
Code: Select all
$SITE['monthNames'] = array( // for wxastronomy page .. replace with month names in your language
"Enero","Febrero","Marzo","Abril","Mayo","Junio",
"Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"
);
The 'dot-format' date is handled correctly by the template set IF the native language of the CUtags.php dates
is set with the correct $SITE['monthNames'] array -- otherwise PHP can not interpret the month names correctly
and you end up with bad dates showing everywhere. I would recommend you change Cumulus to use Spanish and then use the Spanish version for your Settings.php $SITE['monthNames'] entry.
You also should change in Settings.php
Code: Select all
$SITE['lang'] = 'en'; // default language for website to use
to
Code: Select all
$SITE['lang'] = 'es'; // default language for website to use
so the default language to use is Spanish.
Hope this helps...
Best regards,
Ken