[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: Re: [question] how to set the date using busybox
From: "piotr.lewicki" <piotr.lewicki () elfin ! de>
Date: 2016-08-15 11:29:37
Message-ID: a2943c24-dfb7-de7f-183e-ca2aecb0adb6 () elfin ! de
[Download RAW message or body]
Thank you for your response.
It turns out that it also does not work.
Luckily I found the reason and it was "timedatectl set-ntp true" that
was blocking the new date. Fixed with "timedatectl set-ntp false".
(oh Lenny...)
Sorry for spamming,
Thanks,
Piotr Lewicki
On 15.08.2016 12:02, walter harms wrote:
> Does it work for you if you do not use the epoch but the "normal"
> date format MMDDhhmmCCYY ?
>
>
> re,
> wh
>
> Am 15.08.2016 11:22, schrieb piotr.lewicki:
>> Hello,
>> I'm using busybox v1.24.1 and I have a problem with setting the date
>> using date command.
>> Normally it should work with:
>>
>> date -s @'1271251273'
>>
>> with -s for setting, and the date format in seconds from epoch (one you
>> can get with "date +%s")
>>
>> The command above is returning the proper date (in this case Wed Apr 14
>> 13:21:13 UTC 2010) but it does not set the new date, i.e. next execution
>> of "date" is displaying the old date.
>>
>> I'm 100% sure that this was working with busybox 1.18.5 because I'm
>> using that on the other board.
>>
>> Is this possible that I have found a bug?
>>
>> Let me know how to set the date using seconds from epoch.
>>
>>
>> Thank you,
>> Piotr Lewicki
>> _______________________________________________
>> busybox mailing list
>> busybox@busybox.net
>> http://lists.busybox.net/mailman/listinfo/busybox
>>
> _______________________________________________
> busybox mailing list
> busybox@busybox.net
> http://lists.busybox.net/mailman/listinfo/busybox
_______________________________________________
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