Author Topic: Cumulus Weather Data living in the future???  (Read 1025 times)

0 Members and 1 Guest are viewing this topic.

Offline mkutche

  • Forecaster
  • *****
  • Posts: 886
    • GosportWx.com
Cumulus Weather Data living in the future???
« on: July 11, 2016, 08:32:37 AM »
Any idea why my weather station is in the future??? lol my desktop clock says july 10th, 2016 hmm

http://prntscr.com/brc1em
Mike K.
WS2080 - Cumulus MX b3043
Gosport, Indiana
Gosportwx.com Gosportwx.com/PWS/ Gosportwx.com/j-template/ twitter.com/GosportINWX facebook.com/GosportINWX
-----------------------------------------------------------

Offline ericfynne

  • Contributor
  • ***
  • Posts: 139
Re: Cumulus Weather Data living in the future???
« Reply #1 on: July 11, 2016, 09:19:38 AM »
Presumably because of a confusion somewhere between US and UK (etc) date formats. 
« Last Edit: July 11, 2016, 09:21:55 AM by ericfynne »

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 7455
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Cumulus Weather Data living in the future???
« Reply #2 on: July 11, 2016, 11:16:43 AM »
Your CUtags.php?sce=dump shows
Quote
$WX['date'] = '7/11/2016';
and your Settings.php has
Code: [Select]
$SITE['WDdateMDY'] = false; // for WD date format of month/day/year.  =false for day/month/year
so is expecting dd/mm/yyyy format.  Change that to
Code: [Select]
$SITE['WDdateMDY'] = true; // for WD date format of month/day/year.  =false for day/month/year
so the mm/dd/yyyy format of Cumulus tags can be parsed correctly and the wxstatus.php will stop showing the erroneous date.
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 mkutche

  • Forecaster
  • *****
  • Posts: 886
    • GosportWx.com
Re: Cumulus Weather Data living in the future???
« Reply #3 on: July 11, 2016, 11:37:15 AM »
Your CUtags.php?sce=dump shows
Quote
$WX['date'] = '7/11/2016';
and your Settings.php has
Code: [Select]
$SITE['WDdateMDY'] = false; // for WD date format of month/day/year.  =false for day/month/year
so is expecting dd/mm/yyyy format.  Change that to
Code: [Select]
$SITE['WDdateMDY'] = true; // for WD date format of month/day/year.  =false for day/month/year
so the mm/dd/yyyy format of Cumulus tags can be parsed correctly and the wxstatus.php will stop showing the erroneous date.

thanks. I guess I thought it ment if I had weather display, so i set to false guess I should of read it better :P it was late when i was messing with it.. again thanks :)
Mike K.
WS2080 - Cumulus MX b3043
Gosport, Indiana
Gosportwx.com Gosportwx.com/PWS/ Gosportwx.com/j-template/ twitter.com/GosportINWX facebook.com/GosportINWX
-----------------------------------------------------------

 

anything