WXforum.net

Web Weather => Weather Web Site Help => Topic started by: VA3TWT on August 07, 2017, 09:14:35 PM

Title: Saratoga Date Problem
Post by: VA3TWT on August 07, 2017, 09:14:35 PM
Good day;

Please forgive me if I have posted this in the wrong area.  I am new to the weather hobby and have a lot to learn from this group.

I have the Saratoga template installed on my site, however the date at the top is wrong.  Here is a link to the site: http://blenheimweather.ca/wx/wxindex.php

Any ideas as to where I went wrong in the settings for the date?

Thanks in advance for any and all help;
Gord
Title: Re: Saratoga Date Problem
Post by: saratogaWX on August 07, 2017, 09:22:05 PM
It's likely caused by the Cumulus setting for date format in YYYY-MM-DD.

The template expects date to be either DD/MM/YYYY or MM/DD/YYYY format and the
Code: [Select]
$SITE['WDdateMDY'] = false; // for weather software date format of month/day/year.  =false for day/month/year
in Settings.php controls which format to expect.  The YYYY-MM-DD format is not currently handled as a source (from the weather station software) by the template.

=false; for MM/DD/YYYY
=true; for DD/MM/YYYY
Title: Re: Saratoga Date Problem
Post by: VA3TWT on August 07, 2017, 09:31:09 PM
I tried the setting you specified as both true and false with no change in the date at the top.  Current setting is false.

Gord
Title: Re: Saratoga Date Problem
Post by: saratogaWX on August 08, 2017, 11:57:00 AM
You likely have the operating system running Cumulus with a default locale date format of YYYY-MM-DD -- it needs to be set to DD/MM/YYYY, then the
Code: [Select]
$SITE['WDdateMDY'] = false; // for weather software date format of month/day/year.  =false for day/month/year in Settings.php will work.

It is the operating system that sets how Cumulus formats the date stamp.
Title: Re: Saratoga Date Problem
Post by: VA3TWT on August 08, 2017, 12:08:00 PM
Thank you!  I changed my Windows 10 date format and all is well now.

Gord