summaryrefslogtreecommitdiffstats
path: root/usr.sbin/tzsetup/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/tzsetup/main.c')
-rw-r--r--usr.sbin/tzsetup/main.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/usr.sbin/tzsetup/main.c b/usr.sbin/tzsetup/main.c
index c0074df..6869dd4 100644
--- a/usr.sbin/tzsetup/main.c
+++ b/usr.sbin/tzsetup/main.c
@@ -28,7 +28,7 @@
*/
static const char rcsid[] =
- "$Id: main.c,v 1.6 1996/03/31 09:55:00 joerg Exp $";
+ "$Id: main.c,v 1.7 1996/04/01 08:17:49 joerg Exp $";
#include <sys/types.h>
#include <sys/stat.h>
@@ -232,10 +232,7 @@ setzone(const char *zone)
systime += time_adjust;
tm = localtime(&systime);
- snprintf(msg, sizeof msg,
- "Does %02d:%02d:%02d %d.%d.%04d %s look reasonable?",
- tm->tm_hour, tm->tm_min, tm->tm_sec, tm->tm_mday,
- tm->tm_mon + 1, tm->tm_year + 1900, tm->tm_zone);
+ snprintf(msg, sizeof msg, "Does %s look reasonable?", tm->tm_zone);
rv = dialog_yesno("Verifying timezone selection",
msg, -1, -1);
OpenPOWER on IntegriCloud