December 15, 2020 [Issue 21483] New: Error with timezone Europe/Moscow | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=21483 Issue ID: 21483 Summary: Error with timezone Europe/Moscow Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: normal Priority: P1 Component: phobos Assignee: nobody@puremagic.com Reporter: shiche@yandex.ru I create timestamp with specific zone on my Ubuntu system: moment = SysTime(DateTime(2012, 5, 16, 14, 14, 41), PosixTimeZone.getTimeZone("Europe/Moscow")); writeln(moment.utcOffset); The result is 4 hours, which is wrong. Right result is 3 hours. Linux command prompt gives following information: $ date +"%z" +0300 -- |
Copyright © 1999-2021 by the D Language Foundation