summaryrefslogtreecommitdiff
path: root/src/time/gmtime_r.c
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2017-12-07 17:54:07 +0100
committerRich Felker <dalias@aerifal.cx>2017-12-14 21:33:30 -0500
commiteb7f93c4f6fd0b637a9f8d6e112131b88ad2b00f (patch)
treeeca6d59de35f8b7bfebb5d61870a11fde6646326 /src/time/gmtime_r.c
parent3ec82877e7783f0706ba3c9e3c815cd2aa34059e (diff)
downloadmusl-eb7f93c4f6fd0b637a9f8d6e112131b88ad2b00f.tar.gz
use the name UTC instead of GMT for UTC timezone
notes by maintainer: both C and POSIX use the term UTC to specify related functionality, despite POSIX defining it as something more like UT1 or historical (pre-UTC) GMT without leap seconds. neither specifies the associated string for %Z. old choice of "GMT" violated principle of least surprise for users and some applications/tests. use "UTC" instead.
Diffstat (limited to 'src/time/gmtime_r.c')
-rw-r--r--src/time/gmtime_r.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/time/gmtime_r.c b/src/time/gmtime_r.c
index 8cbdadcb..cba72447 100644
--- a/src/time/gmtime_r.c
+++ b/src/time/gmtime_r.c
@@ -2,7 +2,7 @@
#include <errno.h>
#include "libc.h"
-extern const char __gmt[];
+extern const char __utc[];
struct tm *__gmtime_r(const time_t *restrict t, struct tm *restrict tm)
{
@@ -12,7 +12,7 @@ struct tm *__gmtime_r(const time_t *restrict t, struct tm *restrict tm)
}
tm->tm_isdst = 0;
tm->__tm_gmtoff = 0;
- tm->__tm_zone = __gmt;
+ tm->__tm_zone = __utc;
return tm;
}