[Bug] Timezone offset bug in DateTimeUtils
維護者通常 1 天內回覆
評估
這個 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
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
apache/iotdb 的其他 Issue
-
[Bug] sbin/replace-conf-from-env.sh word-splits the whole environment and corrupts iotdb-system.properties可能已有人在做 @anishmehta24 於 29 天前認領。 未關閉
難度 2/5 1-3 小時 新手友好度 82/100
apache/iotdb#18655 · 1 個 reaction ·
維護者通常 1 天內回覆
-
IoTDB Edge: stop-edge.sh does not stop its own process when IOTDB_HOME is set, and reports success可能已有人在做 @PDGGK 於 48 天前認領。 未關閉
難度 2/5 1-3 小時 新手友好度 78/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 78/100
維護者通常 1 天內回覆
-
[Bug] findColumn throws NullPointerException instead of SQLException for an unknown column name可能已有人在做 @PDGGK 於 90 天前認領。 未關閉
難度 2/5 1-3 小時 新手友好度 78/100
維護者通常 1 天內回覆
-
[Bug] ResultSetMetaData.getCatalogName throws IndexOutOfBoundsException instead of SQLException for out-of-range columns可能已有人在做 @PDGGK 於 92 天前認領。 未關閉
難度 2/5 1-3 小時 新手友好度 78/100
維護者通常 1 天內回覆
相似的 Issue
-
enhancement Improvement
難度 2/5 1-3 小時 新手友好度 76/100
zowe/zowe-client-java-sdk#647 ·
-
NullPointerException when a `DeserializationProblemHandler` returns `null` for `byte[]` (single value unwrapped) and `char[]` elements可能已有人在做 @Marti2203 今天認領。 未關閉
難度 2/5 半天 新手友好度 88/100
FasterXML/jackson-databind#6300 ·
維護者通常 1 天內回覆
-
content good first issue
難度 1/5 1 小時以內 新手友好度 95/100
cpinitiative/usaco-guide#6699 ·
維護者通常 1 天內回覆
-
BC remittance upload: a claim MSP refused (S03) is saved with a blank status instead of refused (F)可能已有人在做 關聯的 PR 仍在進行中或已合併。 未關閉type: bug
難度 2/5 1-3 小時 新手友好度 88/100
carlos-emr/carlos#4933 ·
維護者通常 1 天內回覆
-
[studio] Data source connection tests leak loading and results across modal sessions可能已有人在做 關聯的 PR 仍在進行中或已合併。 未關閉bug
難度 2/5 1-3 小時 新手友好度 82/100
apache/rocketmq-dashboard#6925 ·
維護者通常 3 天內回覆