summaryrefslogtreecommitdiff
path: root/bin/date/date.c
diff options
context:
space:
mode:
authorChristian Weisgerber <naddy@cvs.openbsd.org>2007-04-12 16:27:48 +0000
committerChristian Weisgerber <naddy@cvs.openbsd.org>2007-04-12 16:27:48 +0000
commitc116e2991d59d1cd4c648fd4c0d30710f7b5855b (patch)
treee41136a0b13a4ef9723bb24d1a14515262a41c1b /bin/date/date.c
parent53f1a35b8e83b47088bc729c144bb73c68b92014 (diff)
use UTC instead of GMT0 for -u; from Jared R.R.Spiegel <jrrs@ice-nine.org>
ok millert@, otto@
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 6384ff566a9..fabf0c506ea 100644
--- a/bin/date/date.c
+++ b/bin/date/date.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: date.c,v 1.27 2005/11/29 19:07:46 dhartmei Exp $ */
+/* $OpenBSD: date.c,v 1.28 2007/04/12 16:27:47 naddy Exp $ */
/* $NetBSD: date.c,v 1.11 1995/09/07 06:21:05 jtc Exp $ */
/*
@@ -40,7 +40,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)date.c 8.2 (Berkeley) 4/28/95";
#else
-static char rcsid[] = "$OpenBSD: date.c,v 1.27 2005/11/29 19:07:46 dhartmei Exp $";
+static char rcsid[] = "$OpenBSD: date.c,v 1.28 2007/04/12 16:27:47 naddy Exp $";
#endif
#endif /* not lint */
@@ -102,7 +102,7 @@ main(int argc, char *argv[])
tval = atol(optarg);
break;
case 'u': /* do everything in UTC */
- if (setenv("TZ", "GMT0", 1) == -1)
+ if (setenv("TZ", "UTC", 1) == -1)
err(1, "cannot unsetenv TZ");
break;
case 't': /* minutes west of GMT */