Problem with date command in BB 1.15.0

Denys Vlasenko vda.linux at googlemail.com
Tue Sep 1 23:37:38 UTC 2009


On Tuesday 01 September 2009 18:21, rhabarber1848 wrote:
> ~ # busybox
> BusyBox v1.14.3 (2009-09-01 14:38:33 CEST) multi-call binary
> 
> ~ # busybox date -s 010101001970
> Thu Jan  1 01:00:00 CET 1970
> 
> But with BB 1.15.0 this does not work anymore:
> 
> ~ # busybox
> BusyBox v1.15.0 (2009-09-01 13:41:01 CEST) multi-call binary
> 
> ~ # /bin/busybox date -s 010101001970
> date: invalid date '010101001970'

This change was done intentionally.

I was unable to google any other implementation of date which
accepts such a peculiar date format: mmddHHMMyyyy (!).

My guess is that it was picked only because it can be parsed
with less code.

OTOH, [[[[[yy]yy]mm]dd]HH]MM[.SS] format is in use elsewhere,
so I changed "date" and "touch" to use it.

It was done on user's request for better compatibility
with "standard" tools.
--
vda


More information about the busybox mailing list