Daylight Savings Time Bug?

  • 1
  • Problem
  • Updated 6 days ago

Today I’m seeing a strange result in the PWS API.  It seems to be a bug related to this weekend’s switch to daylight savings time.

Using the API: v2/pws/dailysummary/7day

Normally the returned results have one entry per day.  However, Sunday has two entries.  One has a timestamp of 11:55 pm, which is normal.  The other has a timestamp of 1:55 am.  This second entry seems to be an error.

 
Photo of Dan Tripp

Dan Tripp

  • 4 Posts
  • 0 Reply Likes

Posted 7 days ago

  • 1
Photo of Victoria Gardner

Victoria Gardner, Official Rep

  • 413 Posts
  • 56 Reply Likes
Thanks, Dan!  I assume you're actually using the 5day version of that API, right?

--Victoria
(Edited)
Photo of Dan Tripp

Dan Tripp

  • 4 Posts
  • 0 Reply Likes
It's history, not forecast, so it's 7 day.  Here's the URL from the documentation:
https://api.weather.com/v2/pws/dailysummary/7day?stationId=KMAHANOV10&format=json&units=e&am...

By the way, the extra entry is still in today's results.  I've changed my code to ignore it.
Photo of Victoria Gardner

Victoria Gardner, Official Rep

  • 403 Posts
  • 55 Reply Likes
Okay, sorry about that.  Duplicated and sent to dev.

--Victoria