|
7 | 7 | * |
8 | 8 | * |
9 | 9 | * IDENTIFICATION |
10 | | - * $Header: /cvsroot/pgsql/src/backend/utils/adt/Attic/dt.c,v 1.69 1999/04/26 04:42:48 ishii Exp $ |
| 10 | + * $Header: /cvsroot/pgsql/src/backend/utils/adt/Attic/dt.c,v 1.70 1999/05/01 17:14:56 tgl Exp $ |
11 | 11 | * |
12 | 12 | *------------------------------------------------------------------------- |
13 | 13 | */ |
@@ -3068,18 +3068,16 @@ DecodeDateTime(char **field, int *ftype, int nf, |
3068 | 3068 | #if defined(HAVE_TM_ZONE) |
3069 | 3069 | *tzp=-(tm->tm_gmtoff);/* tm_gmtoff is Sun/DEC-ism */ |
3070 | 3070 | #elif defined(HAVE_INT_TIMEZONE) |
3071 | | -#ifdef__CYGWIN__ |
3072 | | -*tzp= ((tm->tm_isdst>0) ? (_timezone-3600) :_timez |
3073 | | -one); |
3074 | | -#else |
3075 | | -*tzp= ((tm->tm_isdst>0) ? (timezone-3600) :timezon |
3076 | | -e); |
3077 | | -#endif |
| 3071 | +#ifdef__CYGWIN__ |
| 3072 | +*tzp= ((tm->tm_isdst>0) ? (_timezone-3600) :_timezone); |
| 3073 | +#else |
| 3074 | +*tzp= ((tm->tm_isdst>0) ? (timezone-3600) :timezone); |
| 3075 | +#endif |
3078 | 3076 | #else |
3079 | 3077 | #error USE_POSIX_TIME is defined but neither HAVE_TM_ZONE or HAVE_INT_TIMEZONE are defined |
3080 | 3078 | #endif |
3081 | 3079 |
|
3082 | | -#else/* !USE_POSIX_TIME */ |
| 3080 | +#else/* !USE_POSIX_TIME */ |
3083 | 3081 | *tzp=CTimeZone; |
3084 | 3082 | #endif |
3085 | 3083 | } |
|