Hi, there!
I have a problem setting the system date together with the time with
date -s. This happens since I migrated my embedded powerpc system to
the latest glibc-2.7. glibc-2.3.4 was working fine with same kernel.
Since I did a full toolchain bootstrap while upgrading glibc, lots of
stuff has changed.
Conclusion:
1) date -s can only set either the date or the time, but it's clearing the
time or the date, then.
2) date -s cannot set both: date und time at once. -> resets to
Thu Jan 1 01:00:00 CET 1970
3) date -u works as expected.
Any ideas? How to debug this?
Please CC me as I'm not subscribed.
Here are some details:
logged in as: root
Last login: Thu Jan 1 01:02:53 1970
address@hidden:~$ date
Thu Jan 1 01:00:00 CET 1970
address@hidden:~$ date -s 20071107
Wed Nov 7 00:00:00 CET 2007
address@hidden:~$ date -s 12:01
Thu Jan 1 12:01:00 CET 1970
address@hidden:~$ date
Thu Jan 1 01:00:00 CET 1970
address@hidden:~$ date -s 20071107
Wed Nov 7 00:00:00 CET 2007
address@hidden:~$ date -s 12:01
Thu Jan 1 12:01:00 CET 1970
address@hidden:~$ date
Thu Jan 1 01:00:00 CET 1970
address@hidden:~$ date -s 20071107
Wed Nov 7 00:00:00 CET 2007
address@hidden:~$ date -s 12:01
Thu Jan 1 12:01:00 CET 1970
address@hidden:~$ date -s 2007-11-07
Wed Nov 7 00:00:00 CET 2007
address@hidden:~$ date
Wed Nov 7 00:00:01 CET 2007
address@hidden:~$ date -u 110711032007.00
Wed Nov 7 11:03:00 UTC 2007
address@hidden:~$ date
Wed Nov 7 12:03:01 CET 2007
address@hidden:~$ date -u 110711042007.00
Wed Nov 7 11:04:00 UTC 2007
address@hidden:~$ date
Wed Nov 7 12:04:01 CET 2007
address@hidden:~$ date
Wed Nov 7 12:04:03 CET 2007
address@hidden:~$ date --version
date (GNU coreutils) 6.9
address@hidden:~$ ld -v
GNU ld (GNU Binutils) 2.18.50.20071019
address@hidden:~$ gcc -v
Using built-in specs.
Target: powerpc-unknown-linux-gnu