Dear R core team:
Sys.timezone() return wrong result on windows 10 (simple chinese version), it
return Asia/Taipei ,but The time zone is " China Standard Time
(UTC+08:00) Beijing, Chongqing, Hong Kong, Urumqi" .
after some digging , the code related this issue at
r\src\extra\tzone\registryTZ.c line 54.
{ L"China Standard Time", "Asia/Taipei" }
it should be
{ L"China Standard Time", "Asia/Shanghai" }
this can be verified use windows command " tzutil /l" , which report
:
(UTC+08:00) Beijing, Chongqing, Hong Kong, Urumqi
China Standard Time
(UTC+08:00) Taipei
Taipei Standard Time
there also more information about timezone on windows 10
(https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/default-time-zones?view=windows-10)
could we chang r\src\extra\tzone\registryTZ.c line 54 to { L"China Standard
Time", "Asia/Shanghai" } ?
your sincerely
Yu Gong
[[alternative HTML version deleted]]