<div dir="ltr"><div><div><div class="im"><div><p style="margin:0cm 0cm 0pt" class="MsoNormal"><span style="color:black;font-family:&quot;Courier New&quot;;font-size:8pt">(I&#39;ve also sent this reply directly to Azhar.)<br>
</span></p><p style="margin:0cm 0cm 0pt" class="MsoNormal"><span style="color:black;font-family:&quot;Courier New&quot;;font-size:8pt"><br></span></p><p style="margin:0cm 0cm 0pt" class="MsoNormal"><span style="color:black;font-family:&quot;Courier New&quot;;font-size:8pt">&gt; $ </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;</span></p>

<font face="Times New Roman">

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

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

</font><br><p style="margin:0cm 0cm 0pt" class="MsoNormal"><span style="color:rgb(31,73,125)">&gt; </span><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</span><font face="Times New Roman">

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

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

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

</font>&gt;<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"></span><font face="Times New Roman">

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

</font><br></div></div>The situation here is that there are two instants
 in Moscow in 2014 when wall clocks are to read 1:59:00: one just prior 
to when clocks are adjusted, and one an hour after that. When you use 
the date command as above, it must pick which of the two instants to 
use; here it has picked the second one, so you don&#39;t see a clock shift 
after a couple of seconds.<br>
<br></div>You should be able to verify this by modifying your script to output both Moscow and universal time.<br><br></div>    @dashdashado</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Aug 29, 2014 at 5:47 AM, 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"><font face="Times New Roman">

</font><br><p style="margin:0cm 0cm 0pt" class="MsoNormal">Hi<u></u><u></u><u></u></p><font face="Times New Roman">

</font><br><p style="margin:0cm 0cm 0pt" class="MsoNormal"><u></u> <u></u></p><font face="Times New Roman">

</font><br><p style="margin:0cm 0cm 0pt" class="MsoNormal">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 style="margin:0cm 0cm 0pt" class="MsoNormal">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 style="margin:0cm 0cm 0pt" class="MsoNormal"><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 style="margin:0cm 0cm 0pt" class="MsoNormal"><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 style="margin:0cm 0cm 0pt" class="MsoNormal"><b><u></u> <u></u></b></p><font face="Times New Roman">

</font><br><p style="margin:0cm 0cm 0pt" class="MsoNormal"><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 style="margin:0cm 0cm 0pt" class="MsoNormal"><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 style="margin:0cm 0cm 0pt" class="MsoNormal"><span style="color:rgb(31,73,125)"><u></u> <u></u></span></p><font face="Times New Roman">

</font><br><p style="margin:0cm 0cm 0pt" class="MsoNormal"><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 style="margin:0cm 0cm 0pt" class="MsoNormal"><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 style="margin:0cm 0cm 0pt" class="MsoNormal"><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 style="margin:0cm 0cm 0pt" class="MsoNormal"><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 style="margin:0cm 0cm 0pt" class="MsoNormal"><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 style="margin:0cm 0cm 0pt" class="MsoNormal"><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 style="margin:0cm 0cm 0pt" class="MsoNormal"><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 style="margin:0cm 0cm 0pt" class="MsoNormal"><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 style="margin:0cm 0cm 0pt" class="MsoNormal"><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 style="margin:0cm 0cm 0pt" class="MsoNormal"><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 style="margin:0cm 0cm 0pt" class="MsoNormal"><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 style="margin:0cm 0cm 0pt" class="MsoNormal"><span style="color:rgb(31,73,125)"><u></u> <u></u></span></p><font face="Times New Roman">

</font><br><p style="margin:0cm 0cm 0pt" class="MsoNormal"><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 style="margin:0cm 0cm 0pt" class="MsoNormal"><span style="color:rgb(31,73,125)"><u></u> <u></u></span></p><font face="Times New Roman">

</font><br><p style="margin:0cm 0cm 0pt" class="MsoNormal"><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 style="margin:0cm 0cm 0pt" class="MsoNormal"><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 style="margin:0cm 0cm 0pt" class="MsoNormal"><span style="color:rgb(31,73,125)"><u></u> <u></u></span></p><font face="Times New Roman">

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

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

</font><br><p style="margin:0cm 0cm 0pt" class="MsoNormal"><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 style="margin:0cm 0cm 0pt" class="MsoNormal"><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 style="margin:0cm 0cm 0pt" class="MsoNormal"><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 style="margin:0cm 0cm 0pt" class="MsoNormal"><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 style="margin:0cm 0cm 0pt" class="MsoNormal"><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 style="margin:0cm 0cm 0pt" class="MsoNormal"><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 style="margin:0cm 0cm 0pt" class="MsoNormal"><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 style="margin:0cm 0cm 0pt" class="MsoNormal"><span style="color:rgb(31,73,125)"><u></u> <u></u></span></p><font face="Times New Roman">

</font><br><p style="margin:0cm 0cm 0pt" class="MsoNormal"><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 style="margin:0cm 0cm 0pt" class="MsoNormal"><span style="color:rgb(31,73,125)"><u></u> <u></u></span></p><font face="Times New Roman">

</font><br><p style="margin:0cm 0cm 0pt" class="MsoNormal"><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 style="margin:0cm 0cm 0pt" class="MsoNormal"><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 style="margin:0cm 0cm 0pt" class="MsoNormal"><span style="color:rgb(31,73,125)"><u></u> <u></u></span></p><font face="Times New Roman">

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

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

</font><br><p style="margin:0cm 0cm 0pt" class="MsoNormal"><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 style="margin:0cm 0cm 0pt" class="MsoNormal"><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 style="margin:0cm 0cm 0pt" class="MsoNormal"><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 style="margin:0cm 0cm 0pt" class="MsoNormal"><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 style="margin:0cm 0cm 0pt" class="MsoNormal"><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 style="margin:0cm 0cm 0pt" class="MsoNormal"><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 style="margin:0cm 0cm 0pt" class="MsoNormal"><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 style="margin:0cm 0cm 0pt" class="MsoNormal"><u></u> <u></u></p><font face="Times New Roman">

</font><br><p style="margin:0cm 0cm 0pt" class="MsoNormal">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 style="margin:0cm 0cm 0pt" class="MsoNormal"><span style="color:rgb(31,73,125)"><u></u> <u></u></span></p><font face="Times New Roman">

</font><br><p style="margin:0cm 0cm 0pt" class="MsoNormal"><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 style="margin:0cm 0cm 0pt" class="MsoNormal"><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 style="margin:0cm 0cm 0pt" class="MsoNormal"><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 style="margin:0cm 0cm 0pt 54pt" class="MsoNormal"><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 style="margin:0cm 0cm 0pt" class="MsoNormal"><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 style="margin:0cm 0cm 0pt" class="MsoNormal"><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 style="margin:0cm 0cm 0pt" class="MsoNormal"><u></u> <u></u></p><font face="Times New Roman">

</font><br><p style="margin:0cm 0cm 0pt" class="MsoNormal">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 style="margin:0cm 0cm 0pt" class="MsoNormal"><span style="color:rgb(31,73,125)"><u></u> <u></u></span></p><font face="Times New Roman">

</font><br><p style="margin:0cm 0cm 0pt" class="MsoNormal"><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 style="margin:0cm 0cm 0pt" class="MsoNormal"><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 style="margin:0cm 0cm 0pt" class="MsoNormal"><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 style="margin:0cm 0cm 0pt" class="MsoNormal"><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 style="margin:0cm 0cm 0pt" class="MsoNormal"><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 style="margin:0cm 0cm 0pt" class="MsoNormal"><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 style="margin:0cm 0cm 0pt" class="MsoNormal">Best Regards<u></u><u></u></p><font face="Times New Roman">

</font><br><p style="margin:0cm 0cm 0pt" class="MsoNormal">Azhar</p><p style="margin:0cm 0cm 0pt" class="MsoNormal">Support Engineer</p><p style="margin:0cm 0cm 0pt" class="MsoNormal">Kuala Lumpur</p><p style="margin:0cm 0cm 0pt" class="MsoNormal">
Malaysia<u></u><u></u></p><font face="Times New Roman">

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