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 中沒有指定檔案或測試。首先定位 Python SDK 中的 datetime 反序列化,並檢查現有的、圍繞返回的 datetime 值撰寫的測試。完成的標準是:反序列化後的 datetime 一致包含 UTC 時區資訊,且相關測試驗證該行為。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
python
領域
api
Issue 類型
功能
難度
3/5
預估耗時
1-2 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。