diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2017-12-07 17:54:07 +0100 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2017-12-14 21:33:30 -0500 |
commit | eb7f93c4f6fd0b637a9f8d6e112131b88ad2b00f (patch) | |
tree | eca6d59de35f8b7bfebb5d61870a11fde6646326 /src/time/timegm.c | |
parent | 3ec82877e7783f0706ba3c9e3c815cd2aa34059e (diff) | |
download | musl-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/timegm.c')
-rw-r--r-- | src/time/timegm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/time/timegm.c b/src/time/timegm.c index b5dae8b6..f444e76e 100644 --- a/src/time/timegm.c +++ b/src/time/timegm.c @@ -2,7 +2,7 @@ #include "time_impl.h" #include <errno.h> -extern const char __gmt[]; +extern const char __utc[]; time_t timegm(struct tm *tm) { @@ -15,6 +15,6 @@ time_t timegm(struct tm *tm) *tm = new; tm->tm_isdst = 0; tm->__tm_gmtoff = 0; - tm->__tm_zone = __gmt; + tm->__tm_zone = __utc; return t; } |