aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/timestamp.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2004-11-01 21:34:44 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2004-11-01 21:34:44 +0000
commit5ba04cd9f17ac91cce7460310a2a6cbd714b7e8a (patch)
tree0259ae8820694dd5b8cf1ef1bb9ce8e34761076b /src/backend/utils/adt/timestamp.c
parent7fad5fff0df0476ca80716153963d90c5776acf3 (diff)
downloadpostgresql-5ba04cd9f17ac91cce7460310a2a6cbd714b7e8a.tar.gz
postgresql-5ba04cd9f17ac91cce7460310a2a6cbd714b7e8a.zip
Invent pg_next_dst_boundary() and rewrite DetermineLocalTimeZone() to
use it, as per my proposal of yesterday. This gives us a means of determining the zone offset to impute to an unlabeled timestamp that is both efficient and reliable, unlike all our previous tries involving mktime() and localtime(). The behavior for invalid or ambiguous times at a DST transition is fixed to be really and truly "assume standard time", fixing a bug that has come and gone repeatedly but was back again in 7.4. (There is some ongoing discussion about whether we should raise an error instead, but for the moment I'll make it do what it was previously intended to do.)
Diffstat (limited to 'src/backend/utils/adt/timestamp.c')
0 files changed, 0 insertions, 0 deletions