diff options
Diffstat (limited to 'commands/hwclock.c')
-rw-r--r-- | commands/hwclock.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/commands/hwclock.c b/commands/hwclock.c index a1f5293122..49569a99c2 100644 --- a/commands/hwclock.c +++ b/commands/hwclock.c @@ -138,9 +138,7 @@ static int do_hwclock(int argc, char *argv[]) snprintf(t, 12, "%lu", time); setenv(env_name, t); } else { - printf("%02d:%02d:%02d %02d-%02d-%04d\n", - tm.tm_hour, tm.tm_min, tm.tm_sec, - tm.tm_mday, tm.tm_mon + 1, tm.tm_year + 1900); + printf("%s\n", time_str(&tm)); } return 0; |