[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: Setting timezone offset properly with busybox
From:       Juha Lumme <juha.lumme () gmail ! com>
Date:       2015-07-25 4:57:47
Message-ID: CAF-Ht3yGnd3DCHhnMaX5GQ6q2Wj=KR9Z5jrvZiv=tBmk6OeABg () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Well, this is a good example of pipe vision :) Indeed the date was wrong.
Thanks, JST-9 works properly!

On Fri, Jul 24, 2015 at 11:12 PM, Guillermo Rodriguez Garcia <
guille.rodriguez@gmail.com> wrote:

> By the way the time you were seeing was not "6 hours in the future", but 9
> hours in the past (check the date)
>
> El viernes, 24 de julio de 2015, Guillermo Rodriguez Garcia <
> guille.rodriguez@gmail.com> escribió:
>
>> Try JST-9. The offset is "the value added to localtime to arrive at UTC",
>> which is the opposite than the "intuitive" meaning.
>>
>> El viernes, 24 de julio de 2015, Juha Lumme <juha.lumme@gmail.com>
>> escribió:
>>
>>> Hi,
>>>
>>> I have created root fs with buildroot 2014.1, and it runs busybox
>>> version 1.22.1.
>>>
>>> I can't seem to understand how the timezone is meant to be set.
>>> NTP has set the system time appropriately to UTC:
>>> # date
>>> Fri Jul 24 02:03:16 UTC 2015
>>>
>>> In my case I would like to set Japan standard time, so I set the TZ
>>> variable (or write to /etc/TZ file) to "JST9" (My current interpretation of
>>>  http://pubs.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap08.html
>>> ) and check time time
>>> # export TZ=JST9
>>> # date
>>> Thu Jul 23 17:03:24 JST 2015
>>>
>>> Now the time zone seems to have been set appropriately, but the time is
>>> 6 hours in the future. The appropriate time should be the original
>>> "02:03:16" + 9 hours -> "11:03:16". Where do I get this additional offset ?
>>>
>>>
>>> Br,
>>> Juha
>>>
>>>
>>
>> --
>> Guillermo Rodriguez Garcia
>> guille.rodriguez@gmail.com
>>
>
>
> --
> Guillermo Rodriguez Garcia
> guille.rodriguez@gmail.com
>

[Attachment #5 (text/html)]

<div dir="ltr">Well, this is a good example of pipe vision :) Indeed the date was \
wrong.  <div>Thanks, JST-9 works properly!</div></div><div \
class="gmail_extra"><br><div class="gmail_quote">On Fri, Jul 24, 2015 at 11:12 PM, \
Guillermo Rodriguez Garcia <span dir="ltr">&lt;<a \
href="mailto:guille.rodriguez@gmail.com" \
target="_blank">guille.rodriguez@gmail.com</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex">By the way the time you were seeing was not &quot;6 hours in \
the future&quot;, but 9 hours in the past (check the date)<span class=""><br><br>El \
viernes, 24 de julio de 2015, Guillermo Rodriguez Garcia &lt;<a \
href="mailto:guille.rodriguez@gmail.com" \
target="_blank">guille.rodriguez@gmail.com</a>&gt; escribió:<br></span><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><span class="">Try JST-9. The offset is &quot;the value added \
to localtime to arrive at  UTC&quot;, which is the opposite than the \
&quot;intuitive&quot; meaning.  <br><br></span><span class="">El viernes, 24 de julio \
de 2015, Juha Lumme &lt;<a>juha.lumme@gmail.com</a>&gt; escribió:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr"><div>Hi,</div><div><br></div>I have created \
root fs with buildroot 2014.1, and it runs busybox version \
1.22.1.<div><br></div><div>I can&#39;t seem to understand how the timezone is meant \
to be set.  </div><div>NTP has set the system time appropriately to \
UTC:</div><div><div># date</div><div><div>Fri Jul 24 02:03:16 UTC \
2015</div></div></div><div><br></div><div>In my case I would like to set Japan \
standard time, so I set the TZ variable (or write to /etc/TZ file) to \
&quot;JST9&quot; (My current interpretation of   <a \
href="http://pubs.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap08.html" \
target="_blank">http://pubs.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap08.html</a> \
) and check time time</div><div><div># export TZ=JST9</div><div># date</div><div>Thu \
Jul 23 17:03:24 JST 2015<br></div></div><div><br></div><div>Now the time zone seems \
to have been set appropriately, but the time is 6 hours in the future. The \
appropriate time should be the original &quot;02:03:16&quot; + 9 hours -&gt; \
&quot;11:03:16&quot;. Where do I get this additional offset ?  \
</div><div><br></div><div><br></div><div>Br,</div><div>Juha</div><div><br></div></div>
 </blockquote><br><br>-- <br>Guillermo Rodriguez \
Garcia<br></span><a>guille.rodriguez@gmail.com</a><br> </blockquote><div \
class="HOEnZb"><div class="h5"><br><br>-- <br>Guillermo Rodriguez Garcia<br><a \
href="mailto:guille.rodriguez@gmail.com" \
target="_blank">guille.rodriguez@gmail.com</a><br> \
</div></div></blockquote></div><br></div>



_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic