Author Topic: Last rain AM/PM wrong Trends page  (Read 899 times)

0 Members and 1 Guest are viewing this topic.

Offline tigerbait

  • Senior Member
  • **
  • Posts: 55
    • Ellerbe Weather
Last rain AM/PM wrong Trends page
« on: September 04, 2023, 10:42:04 AM »
So been in a long drought here in Louisiana.  But it did rain last night and ended a 12:04AM. My trends page is showing last rain at 12:04PM. I've checked all settings & seem to be correct.  Thanks in advance

https://www.sporttiger.com/wxtrends.php

 [ You are not allowed to view attachments ]
https://www.sporttiger.com
Davis VP2 Weather Display
Saratoga scripts

Offline hcorrin

  • Senior Contributor
  • ****
  • Posts: 156
    • Ballaugh Weather
Re: Last rain AM/PM wrong Trends page
« Reply #1 on: September 05, 2023, 05:03:15 AM »
The info for that is in the testtag.php but is taken from WD so you may need to check you date formats in WD and you Saratoga setting’s

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9508
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Last rain AM/PM wrong Trends page
« Reply #2 on: September 05, 2023, 12:59:22 PM »
Looking at testtags.php?sce=view shows
Code: [Select]
$dateoflastrainalways = '9/4/2023'; which is what is displayed.
Your Settings.php has
Code: [Select]
$SITE['WDdateMDY'] = true; // for WD date format of month/day/year.  =false for day/month/year
and that correctly matches the date format you are using (month/day/year).

The data contents are solely determined by Weather-Display.
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

Offline tigerbait

  • Senior Member
  • **
  • Posts: 55
    • Ellerbe Weather
Re: Last rain AM/PM wrong Trends page
« Reply #3 on: September 05, 2023, 02:58:13 PM »
Thanks everyone.  I'm just going to blame a glitch as all setting are correct.  I will see the next time when it rains starting at midnight it hopefully will show AM as the last rain.

https://www.sporttiger.com
Davis VP2 Weather Display
Saratoga scripts

 

anything