summaryrefslogtreecommitdiffstats
path: root/usr.sbin/tzsetup
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1996-07-03 01:17:34 +0000
committerjkh <jkh@FreeBSD.org>1996-07-03 01:17:34 +0000
commitbee7e144ad8d27520fdfc350b821e3698de06b7d (patch)
tree99dc0d3698ae672c00ad37cdd453f8dd68c5eed4 /usr.sbin/tzsetup
parentfa5ad0ea48fece92ca6b77d376335d865bb6dff5 (diff)
downloadFreeBSD-src-bee7e144ad8d27520fdfc350b821e3698de06b7d.zip
FreeBSD-src-bee7e144ad8d27520fdfc350b821e3698de06b7d.tar.gz
Only print the selected timezone in verification rather than the bogus time.
Diffstat (limited to 'usr.sbin/tzsetup')
-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