Author Topic: Saratoga Date Problem  (Read 308 times)

0 Members and 1 Guest are viewing this topic.

Offline VA3TWT

  • Member
  • *
  • Posts: 5
    • Blenheim Weather
Saratoga Date Problem
« 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

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 6187
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Saratoga Date Problem
« Reply #1 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
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Boltek-PCI/NexStorm, microSferics ToA, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge/hub
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline VA3TWT

  • Member
  • *
  • Posts: 5
    • Blenheim Weather
Re: Saratoga Date Problem
« Reply #2 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

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 6187
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Saratoga Date Problem
« Reply #3 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.
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Boltek-PCI/NexStorm, microSferics ToA, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge/hub
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline VA3TWT

  • Member
  • *
  • Posts: 5
    • Blenheim Weather
Re: Saratoga Date Problem
« Reply #4 on: August 08, 2017, 12:08:00 PM »
Thank you!  I changed my Windows 10 date format and all is well now.

Gord