Author Topic: Clientraw.txt error  (Read 1638 times)

0 Members and 1 Guest are viewing this topic.

Offline Scobey

  • Member
  • *
  • Posts: 27
    • Scobey's Weather
Clientraw.txt error
« on: November 03, 2015, 09:39:18 PM »
Scobey's Weather
27°F Anchorage, Alaska, USA   
Language:   Set  English
Updated:  11-Mar-2015 5:27pm 
 
Why does my masthead have the wrong date? Clientraw.txt is wrong.  \

www.scoblic.net/weather
« Last Edit: November 03, 2015, 09:40:57 PM by Scobey »

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9298
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Clientraw.txt error
« Reply #1 on: November 03, 2015, 10:29:45 PM »
Your Weather-Display settings are uploading dates in d/m/y format.

Change Settings.php from
Code: [Select]
$SITE['WDdateMDY'] = true; // for WD date format of month/day/year.  =false for day/month/year
to
Code: [Select]
$SITE['WDdateMDY'] = false; // for WD date format of month/day/year.  =false for day/month/year
and the dates will be parsed correctly.

However, for a USA site, instead of the above, you should just change Weather-Display to use month/day/year format for all Web dates,
then both clientraw.txt and testtags.php will both have m/d/y formatted dates (they currently have d/m/y formatted dates).
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

 

anything