projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
remove LFS64 programming interfaces (macro-only) from _GNU_SOURCE
[musl]
/
src
/
time
/
timegm.c
diff --git
a/src/time/timegm.c
b/src/time/timegm.c
index
7148fca
..
4e5907d
100644
(file)
--- a/
src/time/timegm.c
+++ b/
src/time/timegm.c
@@
-7,12
+7,12
@@
time_t timegm(struct tm *tm)
struct tm new;
long long t = __tm_to_secs(tm);
if (__secs_to_tm(t, &new) < 0) {
- errno = E
INVAL
;
+ errno = E
OVERFLOW
;
return -1;
}
*tm = new;
tm->tm_isdst = 0;
tm->__tm_gmtoff = 0;
- tm->__tm_zone =
"GMT"
;
+ tm->__tm_zone =
__utc
;
return t;
}