logo       

Re: Bug #897: EXTRACT(EPOCH FROM column): Possible wrong output: msg#00136

db.postgresql.bugs

Subject: Re: Bug #897: EXTRACT(EPOCH FROM column): Possible wrong output

I said:
> In most other contexts, we interpret such values as being in local time
> (the current server TimeZone) when it's necessary to make a distinction.
> Consistency would suggest doing it that way here too, I think.

I have applied a patch to make extract(epoch from timestamp) assume that
timestamps without time zone are in local time, and generate the correct
Unix epoch value accordingly. This will appear in 7.3.3.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise