Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

[Bug] Timezone offset bug in DateTimeUtils

未關閉
#17,433 1 則留言 1 個 reaction 已指派 1 人 在 GitHub 檢視

維護者通常 1 天內回覆

@Lexert19 已經在處理了。

開始於 2026年5月15日。

  • #17439 來自 @Lexert19 —— 未關閉

評估

這個 Issue 還沒有評估資料。

描述

Search before asking
  • I searched in the issues and found nothing similar.
Version

c91688bd47

Describe the bug and provide the minimal reproduce step

The core issue lies in org.apache.iotdb.db.utils.datetimeutils.DateTimeUtils.toZoneOffset(ZoneId zoneId). This method calculates the timezone offset using Instant.now(). In regions that observe Daylight Saving Time (DST), such as Europe/Warsaw, the offset is not constant throughout the year (+1 in winter, +2 in summer).
timezone: Europe/Warsaw
INSERT INTO root.test.d1(time, s1) VALUES(2024-01-01T00:00:00, 1);
SELECT s1 FROM root.test.d1;

What did you expect to see?

2024-01-01T00:00:00+01:00

What did you see instead?

2023-12-31T23:00:00.000+01:00

Anything else?

No response

Are you willing to submit a PR?
  • I'm willing to submit a PR!
主要語言
Java
星號
6.4k
分支
1.2k
平均合併
1 天 11 小時
30 天內合併 PR
182

環境準備

從這裡開始

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

apache/iotdb 的其他 Issue

查看 apache/iotdb 的全部 Issue

相似的 Issue

更多 Java Issue

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

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