diff options
author | Tom Lane | 2006-10-18 16:43:14 +0000 |
---|---|---|
committer | Tom Lane | 2006-10-18 16:43:14 +0000 |
commit | 877f08da14719a1bead6154785ab45714d347998 (patch) | |
tree | fe730f9ddff1b81fb8d28d97924d1f81565d8370 /src/include/pgtime.h | |
parent | 723f716be04c3e59bb7fdaa6ff044bda6ea4f94b (diff) |
Fix up timetz input so that a date is required only when the specified
timezone actually has a daylight-savings rule. This avoids breaking
cases that used to work because they went through the DecodePosixTimezone
code path. Per contrib regression failures (mea culpa for not running
those yesterday...). Also document the already-applied change to allow
GMT offsets up to 14 hours.
Diffstat (limited to 'src/include/pgtime.h')
-rw-r--r-- | src/include/pgtime.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/include/pgtime.h b/src/include/pgtime.h index 0e02c9e24b0..bbb83b7fd61 100644 --- a/src/include/pgtime.h +++ b/src/include/pgtime.h @@ -6,7 +6,7 @@ * Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group * * IDENTIFICATION - * $PostgreSQL: pgsql/src/include/pgtime.h,v 1.13 2006/09/16 20:14:33 tgl Exp $ + * $PostgreSQL: pgsql/src/include/pgtime.h,v 1.14 2006/10/18 16:43:14 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -55,6 +55,7 @@ extern size_t pg_strftime(char *s, size_t max, const char *format, extern void pg_timezone_initialize(void); extern pg_tz *pg_tzset(const char *tzname); extern bool tz_acceptable(pg_tz *tz); +extern bool pg_get_timezone_offset(const pg_tz *tz, long int *gmtoff); extern const char *pg_get_timezone_name(pg_tz *tz); extern pg_tzenum *pg_tzenumerate_start(void); |