Commit f9b65837 authored by Tom Lane's avatar Tom Lane

Didn't compile on non-HAVE_TM_ZONE machines.

parent 369c9e3b
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/timestamp.c,v 1.56 2001/10/18 17:30:15 thomas Exp $ * $Header: /cvsroot/pgsql/src/backend/utils/adt/timestamp.c,v 1.57 2001/10/18 19:54:59 tgl Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -603,9 +603,11 @@ timestamp2tm(Timestamp dt, int *tzp, struct tm * tm, double *fsec, char **tzn) ...@@ -603,9 +603,11 @@ timestamp2tm(Timestamp dt, int *tzp, struct tm * tm, double *fsec, char **tzn)
if (HasCTZSet) if (HasCTZSet)
{ {
*tzp = CTimeZone; *tzp = CTimeZone;
tm->tm_gmtoff = CTimeZone;
tm->tm_isdst = 0; tm->tm_isdst = 0;
#if defined(HAVE_TM_ZONE)
tm->tm_gmtoff = CTimeZone;
tm->tm_zone = NULL; tm->tm_zone = NULL;
#endif
if (tzn != NULL) if (tzn != NULL)
*tzn = NULL; *tzn = NULL;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment