summaryrefslogtreecommitdiffstats
path: root/bin/date/date.c
diff options
context:
space:
mode:
authordbaker <dbaker@FreeBSD.org>2000-05-19 18:02:25 +0000
committerdbaker <dbaker@FreeBSD.org>2000-05-19 18:02:25 +0000
commit80efa7cbc3f84d79299abb652cbdaf41c532c778 (patch)
tree862f2b9d9c01f785ed6a19ad3dce92591c4e184b /bin/date/date.c
parenta1a2f63cd38f21a510307135874c6d9d8518be11 (diff)
downloadFreeBSD-src-80efa7cbc3f84d79299abb652cbdaf41c532c778.zip
FreeBSD-src-80efa7cbc3f84d79299abb652cbdaf41c532c778.tar.gz
Correct confusion and differentiate appropriately between GMT and UTC when
date is launched with the "u" argument. It now operates in the documented manner. Fix typo in date man page. Submitted by: David McNett <nugget@slacker.com>
Diffstat (limited to 'bin/date/date.c')
-rw-r--r--bin/date/date.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/date/date.c b/bin/date/date.c
index fcd9069..0ee69b7 100644
--- a/bin/date/date.c
+++ b/bin/date/date.c
@@ -118,15 +118,15 @@ main(argc, argv)
rflag = 1;
tval = atol(optarg);
break;
- case 't': /* minutes west of GMT */
+ case 't': /* minutes west of UTC */
/* error check; don't allow "PST" */
tz.tz_minuteswest = strtol(optarg, &endptr, 10);
if (endptr == optarg || *endptr != '\0')
usage();
set_timezone = 1;
break;
- case 'u': /* do everything in GMT */
- (void)setenv("TZ", "GMT0", 1);
+ case 'u': /* do everything in UTC */
+ (void)setenv("TZ", "UTC0", 1);
break;
case 'v':
v = vary_append(v, optarg);
OpenPOWER on IntegriCloud