X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;ds=sidebyside;f=src%2Ftime%2Ftimegm.c;h=b5dae8b648eca781ca9e726f90d5b6cc85b72d1a;hb=4ff234f6cba96403b5de6d29d48a59fd73252040;hp=e7a7939b3da2dfee380864357519be9a572d039e;hpb=ea81c0624f0213430ae8fb959e30373eeaaf391c;p=musl diff --git a/src/time/timegm.c b/src/time/timegm.c index e7a7939b..b5dae8b6 100644 --- a/src/time/timegm.c +++ b/src/time/timegm.c @@ -2,6 +2,8 @@ #include "time_impl.h" #include +extern const char __gmt[]; + time_t timegm(struct tm *tm) { struct tm new; @@ -13,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 = __gmt; return t; }