From 7e4e8f78487c3906507283078efbaafad0ca77e5 Mon Sep 17 00:00:00 2001 From: roland Date: Mon, 17 May 1993 00:13:14 +0000 Subject: [PATCH] entered into RCS --- time/gmtime.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/time/gmtime.c b/time/gmtime.c index 405a5d4c01..f09baef5f2 100644 --- a/time/gmtime.c +++ b/time/gmtime.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991 Free Software Foundation, Inc. +/* Copyright (C) 1991, 1993 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -18,15 +18,16 @@ Cambridge, MA 02139, USA. */ #include #include -#undef __OPTIMIZE__ /* Avoid inline `gmtime' function. */ #include -#undef gmtime - - /* Return the `struct tm' representation of *T in UTC. */ struct tm * DEFUN(gmtime, (t), CONST time_t *t) { - return __offtime(t, 0L); + struct tm *tp = __offtime (t, 0L); + + tp->tm_gmtoff = 0L; + tp->tm_zone = "GMT"; + + return tp; } -- 2.11.0