WXforum.net
Web Weather => Weather Website PHP/AJAX scripting => Custom Website Templates => Topic started by: ea1hmy on May 06, 2018, 07:35:57 AM
-
Hello,
how to correct the date of the year 1970 in the wxtrends.php template with Cumulus
Thank you
-
Your default page shows a Leuven template. What is the URL to the wxtrends.php page that shows the error?
-
Hello Ken,
Use the Saratoga Template, the script is CU-trends-inc.php version
print "<! - begin CU-trends-inc.php V1.10 - 30-Sep-2017 -> \ n" ;.
The website is:
http://www.tiempoenxativa.es/saratoga/wxtrends.php
Thank you for your attention
-
In your CUtags.php, the dates are shown in Spanish. You need to change in Settings.php
$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 $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"
);
so the dates can be handled correctly (by translating Spanish months to English for PHP calculations, then back to Spanish if needed).
-
Thank you for your attention
=D> =D> \:D/ \:D/