Local timezone not taken into account in API Level 24
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- android, cpp
- 领域
- mobile-dev
调研方向
使用 API Level 24 上的 x86 Android 模拟器重现该问题,设置自定义时区,然后运行 console.log(new Date())。将结果与预期的本地偏移量以及此处描述的 GMT 输出进行比较。完成的标准是,在 API Level 24 及更高版本上创建日期时遵循设备时区。
由索引模型根据 Issue 内容生成。
描述
Environment
- CLI: 5.1.0
- Cross-platform modules: 5.1.0
- Android Runtime: 4.2.0 (and higher)
Describe the bug
The local timezone is not properly taken into account when creating dates (GMT is always assumed).
To Reproduce
- Create a x86 Android emulator using API Level 24
- Set to some custom timezone in the device Settings.
Expected behavior
The timezone is properly taken into account when using console.log(new Date());:
Thu Jan 24 2019 09:40:47 GMT+0200 (EET)
Actual Behavior
The date is assumed in GMT:
Thu Jan 24 2019 07:40:47 GMT+0000 (GMT)
- 主要语言
- C++
- 星标
- 563
- 派生
- 144
- 平均合并
- 10 小时 46 分钟
- 30 天内合并 PR
- 14
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
NativeScript/android 的其他 Issue
-
难度 5/5 一周以上 新手友好度 38/100
NativeScript/android#2039 · 1 条评论 ·
-
难度 4/5 3-5 天 新手友好度 48/100
NativeScript/android#2024 ·
-
难度 5/5 一周以上 新手友好度 20/100
NativeScript/android#2020 ·
-
难度 5/5 一周以上 新手友好度 42/100
NativeScript/android#2019 ·
-
难度 4/5 3-5 天 新手友好度 55/100
NativeScript/android#1986 ·
查看 NativeScript/android 的全部 Issue
相似的 Issue
-
ai_reviewed
难度 2/5 1-3 小时 新手友好度 68/100
ydb-platform/ydb#53869 · 3 条评论 ·
-
bug cert blocker needs triage
难度 2/5 1-3 小时 新手友好度 82/100
project-chip/connectedhomeip#74373 ·
-
upstream update
难度 2/5 1-3 小时 新手友好度 75/100
conan-io/conan-center-index#31035 ·
-
Bug
难度 2/5 1-3 小时 新手友好度 68/100
-
documentation
难度 1/5 1 小时以内 新手友好度 85/100
vllm-project/vllm-ascend#17329 ·