riverscuomo / spotkin_flutter

A front end for Spotkin server
https://spotkin.web.app
8 stars 4 forks source link

Daylight Saving Affected Playlist Update #83

Closed Mel01000001 closed 1 month ago

Mel01000001 commented 1 month ago

I have my Scheduled Update Time set to 7.00am. Usually it will update at 7.30am. As can be seen in this discussion. I have no actual screenshots, but note the timestamps as @KCreek1 and I regularly check in with each other regarding updates.

Screenshot_20241006_161911_Discord Screenshot_20241006_161949_Discord

Today, Daylight Saving started (so my local time went forward an hour). My playlist updated at 8.30am and when I looked at the settings, it was now set to 8.00am, which I had not changed.

Again for timestamp purposes.

Screenshot_20241006_164809_Discord

Screenshot_20241006_164717_Discord

Spotkin now showing 8.00am.

Screenshot_20241006_125243_Chrome

I tested a scheduled update this afternoon and it updated as per usual. Was set for 3.00pm and updated at 3.30pm.

KCreek1 commented 1 month ago

I asked chat about the time conversion issue with DST and the half hour discrepancy Mel experiences. It may be a relatively easy fix of adding the minutes argument to the DateTime object in localToUtc and utcToLocal.

If I understood it correctly.

riverscuomo commented 1 month ago

I think the Heroku scheduler runs some time within the hour your request.