dropbox / dropbox-sdk-python

The Official Dropbox API V2 SDK for Python
https://www.dropbox.com/developers
MIT License
930 stars 318 forks source link

Include UTC timezone with returned datetimes #482

Open SamStephens opened 12 months ago

SamStephens commented 12 months ago

Why is this feature valuable to you? Does it solve a problem you're having?

Datetimes returned by the client library do not include a timezone. As per lost timezone, the timezone is always UTC.

However, I had to search the internet and find this bug to confirm these times were UTC. I'm also going to have to manually set the timezone to UTC to actually use these datetimes in my application - a datetime without a timezone is basically meaningless.

Describe the solution you'd like

It should be trivial to include the UTC timezone everywhere that datetimes are deserialised.

Describe alternatives you've considered

N/A, there's not really other alternatives.

Additional context

N/A

greg-db commented 12 months ago

Thanks for writing this up! I can't make any promises myself, but I'll send this request along to the team.