Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
request: convert times to users local timezones #22213
Comments
|
What would have to happen is basically a fork of upload_date to upload_date_local. A quick search showed something promising:
I'll see if I can whip something up in the next day or so. |
|
This will not work since you don't know the original timezone in general. |
|
I meant the timezone of the downloader, not the recorder |
|
To clarify, I was looking to have the date twitch reports (which is in UTC) to the downloader's current timezone. |
Checklist
Description
I'd like youtube-dl to convert upload dates to the users current timezone when substituting for '%(upload_date)s' in output filenames. Twitch in particular (and presumably many more) return their timestamps in UTC, and youtube-dl does not convert them before substitution which leads to the upload date being inconsistent in different timezones. In my case this results in evening streams being labelled as the day after, while morning streams are marked labelled properly. I originally thought this was a bug ( #22173 ), more specific examples of this behavior are available there. Thank you for considering my request!