javascript-tutorial / javascript-tutorial/en.javascript.info
Date and time tasks don't make sense (if not in UTC)
還沒有人認領這個 Issue。
- 主要語言
- HTML
- 星號
- 25.5k
- 分支
- 4k
- PR 合併指標
- 30 天內沒有已合併 PR
描述
Maybe there's an error in my logic.
But all the tasks & solutions in [*Date and time*](https://javascript.info/date#tasks) don't really make sense if you aren't coincidentally living in UTC+0, right?
My Win 10 always displays dates with 1 hour delay (because I'm in central European summer time UTC+1):
`console.log(new Date(2012,2,1)) ` doesn't display 1st of March but `2012-02-29T23:00:00.000Z`
Shouldn't the tasks explicitly work with UTC time zone & the respective methods, in order to make results inclusive?
貢獻指南
這個儲存庫沒有索引到貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
從 issue 中連結的日期和時間任務區段開始,檢查每個任務對於本地時間、UTC 以及所使用的 Date 方法的假設。在非 UTC 時區中重現這些範例,然後更新任務的文字或範例,使預期的時區明確,且所述結果保持一致。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- javascript
- 領域
- documentation
- Issue 類型
- 文件
- 難度
- 2/5
- 預估耗時
- 1-3 小時
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100