diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2004-11-01 22:00:30 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2004-11-01 22:00:30 +0000 |
commit | c4acbb843b0b10204b04be6245db57d50f9cee0e (patch) | |
tree | f9fa5973c62b9c205b7c798d316acc4712be9453 /src/tutorial/complex.c | |
parent | 5ba04cd9f17ac91cce7460310a2a6cbd714b7e8a (diff) |
timestamptz_trunc() should only recalculate the timezone when truncating
to DAY precision or coarser; leave the timezone alone when precision is
HOUR or less. This avoids surprises for inputs near a DST transition
time, as per example from Matthew Gabeler-Lee. (The only reason we
recalculate at all is so that outputs that are supposed to represent
days will come out as local midnight, and that's not relevant for sub-day
precision.)
Diffstat (limited to 'src/tutorial/complex.c')
0 files changed, 0 insertions, 0 deletions