<div dir="ltr"><div><div><div><div><div><div><div>Azhar,<br><br></div>Whether you have an old version of zdump would not be the problem.  The output from<br><span style="font-family:courier new,monospace">zdump -vc 2014,2015 Europe/Moscow</span><br>
which you provided shows that you do indeed have data which is at least as recent as 2014f, which is what you need for the upcoming Russian changes.<br><br>As Arthur David Olson mentioned in <a href="http://mm.icann.org/pipermail/tz/2014-August/021547.html" target="_blank">http://mm.icann.org/pipermail/tz/2014-August/021547.html</a>, the most likely scenario comes from the fact that the hour from 01:00:00 to 01:59:59 is repeated in zones like Europe/Moscow on 2014-10-26.  So, when you run:<br>
<span style="font-family:courier new,monospace">date -s &quot;Sun Oct 26 01:59:00 MSK 2014&quot;</span><br></div>...your system is assuming that you mean the <b>second</b> occurrence of 01:59:00, which is 59 minutes <b>after</b> the changeover from 01:59:59 back to 01:00:00 has already happened.<br>
<br></div>You can get around this by setting the date according to UTC, one minute before the expected changeover:<br></div><span style="font-family:courier new,monospace">date -s &quot;Sat Oct 25 21:59:00 UTC 2014&quot; -u</span><br>
<br></div>Alternatively, if you&#39;re very patient, you could set the time to 00:59:00, which only happens once that day:<br></div><span style="font-family:courier new,monospace">date -s &quot;Sun Oct 26 00:59:00 MSK 2014&quot;</span><br>
</div>...and then wait 61 minutes to make sure the changeover happens as expected.<br>

</div><div class="gmail_extra"><br clear="all"><div>--<br>Tim Parenti<br></div>
<br><br><div class="gmail_quote">On 2 September 2014 01:43, azhar saleh <span dir="ltr">&lt;<a href="mailto:seper5@hotmail.com" target="_blank">seper5@hotmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div><div dir="ltr">Hi Tim,<br> <br>Thanks for your reply. Below are the output of zdump -vc and zdump --version.<br> <br><span style="color:black;font-family:&quot;Courier New&quot;;font-size:10pt"><div class=""><strong>$ zdump -vc 2014,2015 Europe/Moscow</strong><br>
</div>Europe/Moscow  Fri Dec 13 20:45:52 1901 UTC = Fri Dec 13 23:16:09 1901 MSK isdst=0 gmtoff=9017<br>Europe/Moscow  Sat Dec 14 20:45:52 1901 UTC = Sat Dec 14 23:16:09 1901 MSK isdst=0 gmtoff=9017<br><strong><font style="background-color:rgb(0,255,0)">Europe/Moscow  Sat Oct 25 21:59:59 2014 UTC = Sun Oct 26 01:59:59 2014 MSK isdst=0 gmtoff=14400<br>
Europe/Moscow  Sat Oct 25 22:00:00 2014 UTC = Sun Oct 26 01:00:00 2014 MSK isdst=0 gmtoff=10800</font><br></strong>Europe/Moscow  Mon Jan 18 03:14:07 2038 UTC = Mon Jan 18 06:14:07 2038 MSK isdst=0 gmtoff=10800<br>Europe/Moscow  Tue Jan 19 03:14:07 2038 UTC = Tue Jan 19 06:14:07 2038 MSK isdst=0 gmtoff=10800</span><br>
<span style="color:black;font-family:&quot;Courier New&quot;;font-size:10pt"></span> <br><span style="color:black;font-family:&quot;Courier New&quot;;font-size:10pt"><strong>$ zdump --version</strong><br><font color="#e1c404"><strong>@(#)zdump.c     7.64</strong></font><br>
</span><br><span style="color:black;font-family:&quot;Courier New&quot;;font-size:10pt">So, can you confirmed if I having the older version of TZ data and not the latest tzdata2014f?</span><br><span style="color:black;font-family:&quot;Courier New&quot;;font-size:10pt"></span> <br>
<span style="color:black;font-family:&quot;Courier New&quot;;font-size:10pt">If I&#39;m having an older version of zdump, where can I get the latest of precompiled version of zdump (i.e. for CentOS) or do I need to compile it my self from tzcode2014? FYI, the client platform that I&#39;m supporting does not have c or c++ compiler installed. <br>
<br>If I&#39;m having the correct tzdata2014f, how would the updated version of zdump help in solving the issue? <br> <br> <br>Regards<span class="HOEnZb"><font color="#888888"><br>Azhar</font></span></span><br><div class="hm HOEnZb">
 <br></div><div><div class="hm HOEnZb"><hr>Date: Fri, 29 Aug 2014 07:59:51 -0400<br>Subject: Re: [tz] I found a bug in tzdata2014f.tar.gz for Europe/Moscow or similar such as Europe/Volgograd<br>From: <a href="mailto:tim@timtimeonline.com" target="_blank">tim@timtimeonline.com</a><br>
To: <a href="mailto:seper5@hotmail.com" target="_blank">seper5@hotmail.com</a><br>CC: <a href="mailto:tz@iana.org" target="_blank">tz@iana.org</a></div><div><div class="h5"><br><br><div dir="ltr"><div><div>Azhar,<br><br></div>
What is the result when you run the following?<br><span style="color:black;font-family:&quot;Courier New&quot;;font-size:10pt">$ zdump -vc 2014,2015 Europe/Moscow<br></span></div>
<span style="color:black;font-family:&quot;Courier New&quot;;font-size:10pt"></span><div><br clear="all"><div>Do you see the expected transition reflected in that output, like this?<br><span style="font-family:courier new,monospace">Europe/Moscow  -9223372036854775808 = NULL<br>

Europe/Moscow  -9223372036854689408 = NULL<br>Europe/Moscow  Sat Oct 25 21:59:59 2014 UT = Sun Oct 26 01:59:59 2014 MSK isdst=0<br>Europe/Moscow  Sat Oct 25 22:00:00 2014 UT = Sun Oct 26 01:00:00 2014 MSK isdst=0<br>Europe/Moscow  9223372036854689407 = NULL<br>

Europe/Moscow  9223372036854775807 = NULL</span><br><br></div><div>Since your zdump output prints &quot;UTC&quot; instead of &quot;UT&quot;, it looks like you&#39;re using a zdump version before 2013e.  So you might be using older data than you think, too; the Russian transition for 2014-10-26 is present in 2014f and later.<br>

</div><div><br>--<br>Tim Parenti<br></div>
<br><br><div>On 29 August 2014 05:47, azhar saleh <span dir="ltr">&lt;<a href="mailto:seper5@hotmail.com" target="_blank">seper5@hotmail.com</a>&gt;</span> wrote:<br><blockquote style="padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid">




<div><div dir="ltr"><font face="Times New Roman">

</font><br><p>Hi<u></u><u></u><u></u></p><font face="Times New Roman">

</font><br><p><u></u> <u></u></p><font face="Times New Roman">

</font><br><p>Currently I’m preparing a document to update TZ for one of
our customer in Russia due to the following TZ rule.<u></u><u></u></p><font face="Times New Roman">

</font><br><p>I think I found a bug in <b>tzdata2014f.tar.gz</b> where the time did not move from 01:59:59 to 01:00:00<u></u><u></u></p><font face="Times New Roman">

</font><br><p><u></u> <u></u></p><font face="Times New Roman">
</font><a href="http://www.timeanddate.com/time/change/russia/moscow?year=2014" target="_blank"><font color="#0000ff">http://www.timeanddate.com/time/change/russia/moscow?year=2014</font></a><span style="color:rgb(31,73,125)"><u></u><u></u></span><br>

<font face="Times New Roman">

</font><br><p><span><u></u><u></u>
 <u></u>
 <u></u>
  <u></u>
  <u></u>
  <u></u>
  <u></u>
  <u></u>
  <u></u>
  <u></u>
  <u></u>
  <u></u>
  <u></u>
  <u></u>
  <u></u>
 <u></u><u></u><u></u><u></u><u></u><u></u><u></u><u></u><u></u><u></u><u></u><u></u><u></u>
 <u></u>
 <u></u>
<u></u><u></u><u></u><u></u><u></u>
 <u></u>
<u></u><u></u></span><span style="color:rgb(31,73,125)"><u></u><u></u></span></p><font face="Times New Roman">

</font><span style="color:rgb(31,73,125)"><u></u> <u></u></span><br><font face="Times New Roman">

</font><span style="color:rgb(31,73,125)">Using </span><b>tzdata2014f.tar.gz<u></u><u></u></b><br><font face="Times New Roman">

</font><br><p><b><u></u> <u></u></b></p><font face="Times New Roman">

</font><br><p><span style="color:rgb(31,73,125);font-family:&quot;Courier New&quot;;font-size:10pt">$ ls -lrt /etc/localtime<u></u><u></u></span></p><font face="Times New Roman">

</font><br><p><span style="color:rgb(31,73,125);font-family:&quot;Courier New&quot;;font-size:10pt">lrwxrwxrwx<span>  </span>1 root root 33
Aug 29 13:05 <b>/etc/localtime</b> -&gt;
/usr/share/zoneinfo/Europe/Moscow<u></u><u></u></span></p><font face="Times New Roman">

</font><br><p><span style="color:rgb(31,73,125)"><u></u> <u></u></span></p><font face="Times New Roman">

</font><br><p><span style="color:black;font-family:&quot;Courier New&quot;;font-size:10pt">$ /usr/sbin/zdump -v /etc/localtime | grep 201<u></u><u></u></span></p><font face="Times New Roman">

</font><br><p><span style="color:black;font-family:&quot;Courier New&quot;;font-size:10pt">/etc/localtime  Sat Mar 27 22:59:59 2010 UTC = Sun Mar 28
01:59:59 2010 MSK isdst=0 gmtoff=10800<u></u><u></u></span></p><font face="Times New Roman">

</font><br><p><span style="color:black;font-family:&quot;Courier New&quot;;font-size:10pt">/etc/localtime  Sat Mar 27 23:00:00 2010 UTC = Sun Mar 28
03:00:00 2010 MSD isdst=1 gmtoff=14400<u></u><u></u></span></p><font face="Times New Roman">

</font><br><p><span style="color:black;font-family:&quot;Courier New&quot;;font-size:10pt">/etc/localtime  Sat Oct 30 22:59:59 2010 UTC = Sun Oct 31
02:59:59 2010 MSD isdst=1 gmtoff=14400<u></u><u></u></span></p><font face="Times New Roman">

</font><br><p><span style="color:black;font-family:&quot;Courier New&quot;;font-size:10pt">/etc/localtime  Sat Oct 30 23:00:00 2010 UTC = Sun Oct 31
02:00:00 2010 MSK isdst=0 gmtoff=10800<u></u><u></u></span></p><font face="Times New Roman">

</font><br><p><span style="color:black;font-family:&quot;Courier New&quot;;font-size:10pt"><u></u> <u></u></span></p><font face="Times New Roman">

</font><br><p><span style="color:black;font-family:&quot;Courier New&quot;;font-size:10pt">/etc/localtime  Sat Mar 26 22:59:59 2011 UTC = Sun Mar 27
01:59:59 2011 MSK isdst=0 gmtoff=10800<u></u><u></u></span></p><font face="Times New Roman">

</font><br><p><span style="color:black;font-family:&quot;Courier New&quot;;font-size:10pt">/etc/localtime  Sat Mar 26 23:00:00 2011 UTC = Sun Mar 27
03:00:00 2011 MSK isdst=0 gmtoff=14400<u></u><u></u></span></p><font face="Times New Roman">

</font><br><p><span style="color:black;font-family:&quot;Courier New&quot;;font-size:10pt"><u></u> <u></u></span></p><font face="Times New Roman">

</font><br><p><span style="color:black;font-family:&quot;Courier New&quot;;font-size:10pt">/etc/localtime  Sat Oct 25 21:59:59 2014 UTC = Sun Oct 26
01:59:59 2014 MSK isdst=0 gmtoff=14400<u></u><u></u></span></p><font face="Times New Roman">

</font><br><p><span style="color:black;font-family:&quot;Courier New&quot;;font-size:10pt">/etc/localtime  Sat Oct 25 22:00:00 2014 UTC = Sun Oct 26
01:00:00 2014 MSK isdst=0 gmtoff=10800<u></u><u></u></span></p><font face="Times New Roman">

</font><br><p><span style="color:rgb(31,73,125)"><u></u> <u></u></span></p><font face="Times New Roman">

</font><br><p><span style="color:rgb(31,73,125)">Set the date to Sun Mar 27, 2011
(</span><i><span style="color:rgb(31,73,125)" lang="EN">Russia is
abolishing DST time)</span></i><span style="color:rgb(31,73,125)"><u></u><u></u></span></p><font face="Times New Roman">

</font><br><p><span style="color:rgb(31,73,125)"><u></u> <u></u></span></p><font face="Times New Roman">

</font><br><p><span style="font-family:&quot;Courier New&quot;;font-size:8pt">$ </span><span style="color:black;font-family:&quot;Courier New&quot;;font-size:10pt">date -s
&quot;Sun MAR 27 01:59:00 MSK 2011&quot;</span><span style="font-family:&quot;Courier New&quot;;font-size:8pt"><u></u><u></u></span></p><font face="Times New Roman">

</font><br><p><span style="color:black;font-family:&quot;Courier New&quot;;font-size:10pt">Sun Mar 27 01:59:00 MSK 2011<u></u><u></u></span></p><font face="Times New Roman">

</font><br><p><span style="color:rgb(31,73,125)"><u></u> <u></u></span></p><font face="Times New Roman">

</font><br><p><span style="color:rgb(31,73,125)">Monitor the date<u></u><u></u></span></p><font face="Times New Roman">

</font><br><p><span style="color:rgb(31,73,125)"><u></u> <u></u></span></p><font face="Times New Roman">

</font><br><p><span style="font-family:&quot;Courier New&quot;;font-size:8pt">$
while true; do date; sleep 2; done:<u></u><u></u></span></p><font face="Times New Roman">

</font><br><p><span style="color:black;font-family:&quot;Courier New&quot;;font-size:10pt">:<u></u><u></u></span></p><font face="Times New Roman">

</font><br><p><span style="color:black;font-family:&quot;Courier New&quot;;font-size:10pt">Sun Mar 27 01:59:57 MSK 2011<u></u><u></u></span></p><font face="Times New Roman">

</font><br><p><span style="color:rgb(192,80,77);font-family:&quot;Courier New&quot;;font-size:10pt">Sun Mar 27 01:59:59 MSK 2011<u></u><u></u></span></p><font face="Times New Roman">

</font><br><p><span style="color:rgb(192,80,77);font-family:&quot;Courier New&quot;;font-size:10pt">Sun Mar 27 03:00:01 MSK 2011 </span><span style="color:rgb(192,80,77);font-family:Wingdings;font-size:10pt">ß</span><span style="color:rgb(192,80,77);font-family:&quot;Courier New&quot;;font-size:10pt"> good<u></u><u></u></span></p>

<font face="Times New Roman">

</font><br><p><span style="color:black;font-family:&quot;Courier New&quot;;font-size:10pt">Sun Mar 27 03:00:03 MSK 2011<u></u><u></u></span></p><font face="Times New Roman">

</font><br><p><span style="color:black;font-family:&quot;Courier New&quot;;font-size:10pt">:<u></u><u></u></span></p><font face="Times New Roman">

</font><br><p><span style="color:rgb(31,73,125)"><u></u> <u></u></span></p><font face="Times New Roman">

</font><br><p><span style="color:rgb(31,73,125)">Set the date to Sun Oct 26, 2014
(</span><i><span style="color:rgb(31,73,125)" lang="EN">Russia back
to European DST in October 2014)</span></i><span style="color:rgb(31,73,125)"><u></u><u></u></span></p><font face="Times New Roman">

</font><br><p><span style="color:rgb(31,73,125)"><u></u> <u></u></span></p><font face="Times New Roman">

</font><br><p><span style="color:black;font-family:&quot;Courier New&quot;;font-size:8pt">$ </span><span style="color:black;font-family:&quot;Courier New&quot;;font-size:10pt">date -s &quot;Sun OCT 26 01:59:00 MSK 2014&quot;<u></u><u></u></span></p>

<font face="Times New Roman">

</font><br><p><span style="color:black;font-family:&quot;Courier New&quot;;font-size:10pt">Sun Oct 26 01:59:00 MSK 2014<u></u><u></u></span></p><font face="Times New Roman">

</font><br><p><span style="color:rgb(31,73,125)"><u></u> <u></u></span></p><font face="Times New Roman">

</font><br><p><span style="color:rgb(31,73,125)">Monitor the date<u></u><u></u></span></p><font face="Times New Roman">

</font><br><p><span style="color:rgb(31,73,125)"><u></u> <u></u></span></p><font face="Times New Roman">

</font><br><p><span style="font-family:&quot;Courier New&quot;;font-size:8pt">$ </span><span style="color:black;font-family:&quot;Courier New&quot;;font-size:10pt">while true; do
date; sleep 2; done<u></u><u></u></span></p><font face="Times New Roman">

</font><br><p><span style="color:black;font-family:&quot;Courier New&quot;;font-size:10pt">:<u></u><u></u></span></p><font face="Times New Roman">

</font><br><p><span style="color:black;font-family:&quot;Courier New&quot;;font-size:10pt">Sun Oct 26 01:59:57 MSK 2014<u></u><u></u></span></p><font face="Times New Roman">

</font><br><p><span style="color:rgb(192,80,77);font-family:&quot;Courier New&quot;;font-size:10pt">Sun Oct 26 01:59:59 MSK 2014<u></u><u></u></span></p><font face="Times New Roman">

</font><br><p><span style="color:rgb(192,80,77);font-family:&quot;Courier New&quot;;font-size:10pt">Sun Oct 26 02:00:01 MSK 2014   </span><b><span style="color:rgb(192,80,77);font-family:Wingdings;font-size:10pt">ß</span></b><b><span style="color:rgb(192,80,77);font-family:&quot;Courier New&quot;;font-size:10pt"> Not good.
Should move from 01:59:59 to 01:00:00</span></b><span style="color:rgb(192,80,77);font-family:&quot;Courier New&quot;;font-size:10pt"><u></u><u></u></span></p><font face="Times New Roman">

</font><br><p><span style="color:black;font-family:&quot;Courier New&quot;;font-size:10pt">Sun Oct 26 02:00:03 MSK 2014<u></u><u></u></span></p><font face="Times New Roman">

</font><br><p><span style="color:black;font-family:&quot;Courier New&quot;;font-size:10pt">:<u></u><u></u></span></p><font face="Times New Roman">

</font><br><p><u></u> <u></u></p><font face="Times New Roman">

</font><br><p>If <span style="color:rgb(31,73,125)">I test again using Europe/Moscow
for year 2010, it works fine for that year</span><u></u><u></u></p><font face="Times New Roman">

</font><br><p><span style="color:rgb(31,73,125)"><u></u> <u></u></span></p><font face="Times New Roman">

</font><br><p><span style="color:black;font-family:&quot;Courier New&quot;;font-size:10pt">$ zdump -v Europe/Moscow | grep 2010<u></u><u></u></span></p><font face="Times New Roman">

</font><br><p><span style="color:black;font-family:&quot;Courier New&quot;;font-size:10pt">Europe/Moscow  Sat Mar 27 22:59:59 2010 UTC = Sun Mar 28
01:59:59 2010 MSK isdst=0 gmtoff=10800<u></u><u></u></span></p><font face="Times New Roman">

</font><br><p><span style="color:black;font-family:&quot;Courier New&quot;;font-size:10pt">Europe/Moscow  Sat Mar 27 23:00:00 2010 UTC = Sun Mar 28
03:00:00 2010 MSD isdst=1 gmtoff=14400<u></u><u></u></span></p><font face="Times New Roman">

</font><br><p><span style="color:black;font-family:&quot;Courier New&quot;;font-size:10pt"><u></u> <u></u></span></p><font face="Times New Roman">

</font><br><p><span style="color:black;font-family:&quot;Courier New&quot;;font-size:10pt">Europe/Moscow  Sat Oct 30 22:59:59 2010 UTC = Sun Oct 31 02:59:59
2010 <b>MSD</b> isdst=1 gmtoff=14400<u></u><u></u></span></p><font face="Times New Roman">

</font><br><p><span style="color:black;font-family:&quot;Courier New&quot;;font-size:10pt">Europe/Moscow  Sat Oct 30 23:00:00 2010 UTC = Sun Oct 31 02:00:00
2010 <b>MSK</b> isdst=0 gmtoff=10800<u></u><u></u></span></p><font face="Times New Roman">

</font><br><p><u></u> <u></u></p><font face="Times New Roman">

</font><br><p>And it works just fine for Europe/Rome for year 2014 as well<u></u><u></u></p><font face="Times New Roman">

</font><br><p><span style="color:rgb(31,73,125)"><u></u> <u></u></span></p><font face="Times New Roman">

</font><br><p><span style="color:black;font-family:&quot;Courier New&quot;;font-size:10pt">$ zdump -v /etc/localtime | grep 2014<u></u><u></u></span></p><font face="Times New Roman">

</font><br><p><span style="color:black;font-family:&quot;Courier New&quot;;font-size:10pt">/etc/localtime  Sun Mar 30 00:59:59 2014 UTC = Sun Mar 30
01:59:59 2014 CET isdst=0 gmtoff=3600<u></u><u></u></span></p><font face="Times New Roman">

</font><br><p><span style="color:black;font-family:&quot;Courier New&quot;;font-size:10pt">/etc/localtime  Sun Mar 30 01:00:00 2014 UTC = Sun Mar 30
03:00:00 2014 CEST isdst=1 gmtoff=7200<u></u><u></u></span></p><font face="Times New Roman">

</font><br><p><span style="color:black;font-family:&quot;Courier New&quot;;font-size:10pt">/etc/localtime  Sun Oct 26 00:59:59 2014 UTC = Sun Oct 26 02:59:59
2014 CEST isdst=1 gmtoff=7200<u></u><u></u></span></p><font face="Times New Roman">

</font><br><p><span style="color:black;font-family:&quot;Courier New&quot;;font-size:10pt">/etc/localtime  Sun Oct 26 01:00:00 2014 UTC = Sun Oct 26 02:00:00
2014 CET isdst=0 gmtoff=3600<u></u><u></u></span></p><font face="Times New Roman">

</font><br><p><u></u> <u></u></p><font face="Times New Roman">

Please tell me if it is a bug or something wrong in my testing.</font><br> <br><p>Best Regards<u></u><u></u></p><font face="Times New Roman">

</font><br><p>Azhar</p><p>Support Engineer</p><p>Kuala Lumpur</p><p>
Malaysia<u></u><u></u></p><font face="Times New Roman">

</font><br>                                               </div></div>
</blockquote></div><br></div></div></div></div></div>                                               </div></div>
</blockquote></div><br></div>