We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent1017ddd commit06d88ecCopy full SHA for 06d88ec
src/backend/utils/adt/nabstime.c
@@ -7,7 +7,7 @@
7
*
8
9
* IDENTIFICATION
10
- * $Header: /cvsroot/pgsql/src/backend/utils/adt/nabstime.c,v 1.35 1997/10/25 05:21:10 thomas Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/adt/nabstime.c,v 1.36 1997/10/30 14:06:47 momjian Exp $
11
12
*-------------------------------------------------------------------------
13
*/
@@ -154,6 +154,8 @@ abstime2tm(AbsoluteTime time, int *tzp, struct tm * tm, char *tzn)
154
#else
155
#endif
156
157
+#ifdefUSE_POSIX_TIME
158
+
159
tm->tm_year=tx->tm_year+1900;
160
tm->tm_mon=tx->tm_mon+1;
161
tm->tm_mday=tx->tm_mday;
@@ -162,7 +164,6 @@ abstime2tm(AbsoluteTime time, int *tzp, struct tm * tm, char *tzn)
162
164
tm->tm_sec=tx->tm_sec;
163
165
tm->tm_isdst=tx->tm_isdst;
166
-#ifdefUSE_POSIX_TIME
167
#ifdefHAVE_INT_TIMEZONE
168
if (tzp!=NULL)
169
*tzp= (tm->tm_isdst ? (timezone-3600) :timezone);