Elijas / auto-youtube-subscription-playlist-2

Script automatically adds videos to playlists from Youtube channels and/or subscriptions (Youtube Collections alternative).
MIT License
250 stars 54 forks source link

UTC Issue #35

Open bobpiesz opened 5 years ago

bobpiesz commented 5 years ago

I realize that the UTC is not GMT, but I tried changing the UTC offset to R (eastern standard), instead of it being set to Z, and nothing fixes my issue.

The issue: I believe the timestamp is ahead of time from the youtube video upload time, as if I change the timestamp back several hours, it fixes the issue.

Any ideas?

function ISODateString(d) { // modified from src: http://stackoverflow.com/questions/7244246/generate-an-rfc-3339-timestamp-similar-to-google-tasks-api function pad(n){return n<10 ? '0'+n : n}

return d.getUTCFullYear()+'-'

bobpiesz commented 5 years ago

.000Z switched to .000R does not fix the time offset issue.