[question] how to set the date using busybox
piotr.lewicki
piotr.lewicki at elfin.de
Mon Aug 15 11:29:37 UTC 2016
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 at busybox.net
>> http://lists.busybox.net/mailman/listinfo/busybox
>>
> _______________________________________________
> busybox mailing list
> busybox at busybox.net
> http://lists.busybox.net/mailman/listinfo/busybox
More information about the busybox
mailing list