diff options
author | jkh <jkh@FreeBSD.org> | 1996-07-03 01:17:34 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1996-07-03 01:17:34 +0000 |
commit | bee7e144ad8d27520fdfc350b821e3698de06b7d (patch) | |
tree | 99dc0d3698ae672c00ad37cdd453f8dd68c5eed4 /usr.sbin | |
parent | fa5ad0ea48fece92ca6b77d376335d865bb6dff5 (diff) | |
download | FreeBSD-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')
-rw-r--r-- | usr.sbin/tzsetup/main.c | 7 |
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); |