summaryrefslogtreecommitdiff
path: root/src/tutorial/funcs.source
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2004-11-01 22:00:30 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2004-11-01 22:00:30 +0000
commitc4acbb843b0b10204b04be6245db57d50f9cee0e (patch)
treef9fa5973c62b9c205b7c798d316acc4712be9453 /src/tutorial/funcs.source
parent5ba04cd9f17ac91cce7460310a2a6cbd714b7e8a (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/funcs.source')
0 files changed, 0 insertions, 0 deletions