aboutsummaryrefslogtreecommitdiff
path: root/coreutils
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils')
-rw-r--r--coreutils/date.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/coreutils/date.c b/coreutils/date.c
index c3478fab1..8f9aff8b0 100644
--- a/coreutils/date.c
+++ b/coreutils/date.c
@@ -210,7 +210,7 @@ int date_main(int argc UNUSED_PARAM, char **argv)
#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);