Wrong timezone for Europe/Moscow
In 2011, daylight saving time has been cancelled in Russia. Since then it is always UTC+4. --- [dbadmin@vertica ~]$ TZ=Europe/Moscow date -d '2012-01-01 00:00:00+00' Sun Jan 1 04:00:00 MSK 2012 --- However, Vertica still uses UTC+3 for winter time: --- vertica=> set timezone 'Europe/Moscow'; SET vertica=> select '2013-01-01 00:00:00+00'::timestamp; ?column? --------------------- 2013-12-01 03:00:00 (1 row) --- Updating "tzdata" package has no effect. How to fix it?
0
Comments
Timezones W-SU and MSK are also off:
dbadmin=> select now() at time zone 'msk';
timezone
----------------------------
2013-11-06 16:51:56.728297
(1 row)
dbadmin=> select now() at time zone 'europe/moscow';
timezone
---------------------------- 2013-11-06 16:51:56.728297 (1 row)
dbadmin=> select now() at time zone 'w-su'; timezone ---------------------------- 2013-11-06 16:51:56.728297 (1 row)
dbadmin=> select now() at time zone 'utc+4'; timezone ---------------------------- 2013-11-06 17:51:56.728297 (1 row)
I wanted to set TZ=utc04 in /etc/profile, and Vertica accepts this timezone, but it confuses linux 'date' utility:
[dbadmin@vertica-jenkins ~]$ TZ=utc04 date Срд Ноя 6 11:15:29 utc 2013 [dbadmin@vertica-jenkins ~]$ TZ=utc+4 date Срд Ноя 6 11:15:33 utc 2013 [dbadmin@vertica-jenkins ~]$ TZ=utc-4 date Срд Ноя 6 19:15:35 utc 2013
...so I would not recommend it as an acceptable workaround.
Got the same problem with Vertica 7 on Debian 6 Squeeze
Does someone knows wether and when it will be fixed ?
Problem not resolved fully