news-catalyst / google-app-scripts

a collection of scripts for tinynews google docs add-ons
https://script.google.com/a/newscatalyst.org/d/1ILURq69o3cYUy6k1n1X6HwxdMfl9xWNhILYuZxgLfeblb3IR15WCMZSj/edit
1 stars 1 forks source link

Datetime UTC conversion doesn't return expected results #336

Closed TylerFisher closed 3 years ago

TylerFisher commented 3 years ago

Here, I set a publish date to Sept. 8 at 12 pm.

Screen Shot 2021-09-30 at 11 54 35 AM

After republishing, result comes back as Sept. 7 at 8:00 pm.

Screen Shot 2021-09-30 at 11 57 02 AM

I've tried this with a few different datetimes, and the result is always the previous day at 8 p.m. Seems like the time choice isn't getting picked up.

TylerFisher commented 3 years ago

Confirmed from the console logs: For some reason the selected time is not getting processed.

Screen Shot 2021-09-30 at 12 21 28 PM