[Issue 21483] New: Error with timezone Europe/Moscow

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Dec 15 19:02:04 UTC 2020


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 at puremagic.com
          Reporter: shiche at 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

--


More information about the Digitalmars-d-bugs mailing list