mirror of
https://github.com/postgres/postgres.git
synced 2025-06-25 01:02:05 +03:00
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.
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user