dropbox / dropbox/dropbox-sdk-python

Include UTC timezone with returned datetimes

未关闭
#482 1 条评论 2 个 reaction 已指派 0 人 在 GitHub 查看
enhancement
主要语言
Python
星标
983
派生
330
平均合并
3 分钟
30 天内合并 PR
10

描述

**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](https://github.com/dropbox/dropbox-sdk-python/issues/64), 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

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。