aboutsummaryrefslogtreecommitdiff
path: root/networking/ntpd_simple.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/ntpd_simple.c')
-rw-r--r--networking/ntpd_simple.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/ntpd_simple.c b/networking/ntpd_simple.c
index 55bded8ff..3e7fc4719 100644
--- a/networking/ntpd_simple.c
+++ b/networking/ntpd_simple.c
@@ -378,7 +378,7 @@ step_time_once(double offset)
bb_perror_msg_and_die("settimeofday");
tval = tv.tv_sec;
- strftime(buf, sizeof(buf), "%a %b %e %H:%M:%S %Z %Y", localtime(&tval));
+ strftime_YYYYMMDDHHMMSS(buf, sizeof(buf), &tval);
bb_error_msg("setting clock to %s (offset %fs)", buf, offset);