diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2003-02-22 05:57:45 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2003-02-22 05:57:45 +0000 |
commit | 80d6a277c921454d028e088762bb4a4723f9840e (patch) | |
tree | a00260ff44b3c75aa44afce2b7a9be850a139224 /src/backend/utils/adt/datetime.c | |
parent | 799bc58dc7ed9899facfc8302040749cb0a9af2f (diff) | |
download | postgresql-80d6a277c921454d028e088762bb4a4723f9840e.tar.gz postgresql-80d6a277c921454d028e088762bb4a4723f9840e.zip |
Simplify timezone-handling code per proposal to pghackers: get rid of
setting timezone-related variables during transaction start. They were
not used anyway in platforms that HAVE_TM_ZONE or HAVE_INT_TIMEZONE,
which it appears is *all* the platforms we are currently supporting.
For platforms that have neither, we now only support UTC or numeric-
offset-from-UTC timezones.
Diffstat (limited to 'src/backend/utils/adt/datetime.c')
-rw-r--r-- | src/backend/utils/adt/datetime.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/backend/utils/adt/datetime.c b/src/backend/utils/adt/datetime.c index 625ac11bccb..8978cb534f7 100644 --- a/src/backend/utils/adt/datetime.c +++ b/src/backend/utils/adt/datetime.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/utils/adt/datetime.c,v 1.101 2003/02/20 05:24:55 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/adt/datetime.c,v 1.102 2003/02/22 05:57:44 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -1604,8 +1604,9 @@ DetermineLocalTimeZone(struct tm * tm) tz = (int) delta2; } #else /* not (HAVE_TM_ZONE || HAVE_INT_TIMEZONE) */ + /* Assume UTC if no system timezone info available */ tm->tm_isdst = 0; - tz = CTimeZone; + tz = 0; #endif } else |