commit | e2b41cfb4be2486d9f2d50a8d750eed15c29320e | [log] [tgz] |
---|---|---|
author | Denys Vlasenko <vda.linux@googlemail.com> | Sat Jun 12 03:32:22 2010 +0200 |
committer | Denys Vlasenko <vda.linux@googlemail.com> | Sat Jun 12 03:32:22 2010 +0200 |
tree | 3f68102c9c01ffe92a2d1b397df0db42d3329e5c | |
parent | 53e2f38b6963958d9a4fc47bc71d7c1afbdcd9d5 [diff] [blame] |
date: trivial fix - was reading seconds into nanoseconds field! DOH Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
diff --git a/coreutils/date.c b/coreutils/date.c index c3478fa..8f9aff8 100644 --- a/coreutils/date.c +++ b/coreutils/date.c
@@ -210,7 +210,7 @@ #if ENABLE_FEATURE_DATE_NANO clock_gettime(CLOCK_REALTIME, &ts); #else - time(&ts.tv_nsec); + time(&ts.tv_sec); #endif } localtime_r(&ts.tv_sec, &tm_time);