diff options
Diffstat (limited to 'newlib/libc/time/gmtime_r.c')
-rw-r--r-- | newlib/libc/time/gmtime_r.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/newlib/libc/time/gmtime_r.c b/newlib/libc/time/gmtime_r.c index 7afa021c5..fb39238d3 100644 --- a/newlib/libc/time/gmtime_r.c +++ b/newlib/libc/time/gmtime_r.c @@ -3,15 +3,12 @@ */ #include <time.h> - -#define _GMT_OFFSET 0 +#include "local.h" struct tm * _DEFUN (gmtime_r, (tim_p, res), _CONST time_t * tim_p _AND struct tm *res) { - time_t tim = *tim_p + _GMT_OFFSET; - - return (localtime_r (&tim, res)); + return (_mktm_r (tim_p, res, 1)); } |