python / python/cpython

Use system zoneinfo data on Android

未關閉
#127,801 2 則留言 1 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

OS-android stdlib type-feature
主要語言
Python
星號
77.2k
分支
35.9k
PR 合併指標
PR 指標待擷取

描述

Feature or enhancement

Proposal:

The zoneinfo module can load time zone information from the common IANA format: one directory per continent, containing one file per city. These files can come from one of two sources:

  • The operating system in of the following paths: /usr/share/zoneinfo:/usr/lib/zoneinfo:/usr/share/lib/zoneinfo:/etc/zoneinfo.
  • The tzdata package on PyPI.

None of the well-known paths exist on Android, so the best approach on Android is currently the same as on Windows – use the tzdata package from PyPI.

Has this already been discussed elsewhere?

This is a minor feature, which does not need previous discussion elsewhere

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

研究方向

從 zoneinfo 模組的平台特定路徑偵測開始,並將 Android 與現有的 Windows fallback 進行比較。驗證相關的 Android 系統路徑,並新增測試以顯示會使用可用的系統 IANA 資料,而不是要求安裝 PyPI 的 tzdata 套件。

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

評估

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

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

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