summaryrefslogtreecommitdiffstats
path: root/sys-utils/hwclock.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys-utils/hwclock.c')
-rw-r--r--sys-utils/hwclock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys-utils/hwclock.c b/sys-utils/hwclock.c
index 10cb02a50..db1912a60 100644
--- a/sys-utils/hwclock.c
+++ b/sys-utils/hwclock.c
@@ -717,8 +717,8 @@ static int interpret_date_string(const char *date_opt, time_t * const time_p)
return 12;
}
- sprintf(date_command, "date --date=\"%s\" +seconds-into-epoch=%%s",
- date_opt);
+ sprintf(date_command, "date --date=\"%s\" +%s%%s",
+ date_opt, magic);
if (debug)
printf(_("Issuing date command: %s\n"), date_command);