Setting timezone offset properly with busybox

Juha Lumme juha.lumme at gmail.com
Sat Jul 25 04:57:47 UTC 2015


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 at 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 at 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 at 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 at gmail.com
>>
>
>
> --
> Guillermo Rodriguez Garcia
> guille.rodriguez at gmail.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20150725/6e8b56d5/attachment-0001.html>


More information about the busybox mailing list