WXforum.net

Web Weather => Weather Website PHP/AJAX scripting => Custom Website Templates => Topic started by: ea1hmy on May 06, 2018, 07:35:57 AM

Title: Help Trends con Cumulus
Post 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
Title: Re: Help Trends con Cumulus
Post by: saratogaWX on May 06, 2018, 10:10:31 AM
Your default page shows a Leuven template.  What is the URL to the wxtrends.php page that shows the error?
Title: Re: Help Trends con Cumulus
Post by: ea1hmy on May 07, 2018, 02:07:59 AM
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
Title: Re: Help Trends con Cumulus
Post by: saratogaWX on May 08, 2018, 02:55:44 PM
In your CUtags.php, the dates are shown in Spanish.  You need to change in Settings.php
Code: [Select]
$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
Code: [Select]
$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).
Title: Re: Help Trends con Cumulus
Post by: ea1hmy on May 09, 2018, 02:00:31 AM
Thank you for your attention
 =D&gt; =D&gt; \:D/ \:D/