Skip site navigation (1) Skip section navigation (2)

BUG #3835: TZ doesn't work

From: "Leonid Rozenblyum" <leokom(at)rambler(dot)ru>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #3835: TZ doesn't work
Date: 2007-12-22 14:13:03
Message-ID: 200712221413.lBMED3oh065944@wwwmaster.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-bugs
The following bug has been logged online:

Bug reference:      3835
Logged by:          Leonid Rozenblyum
Email address:      leokom(at)rambler(dot)ru
PostgreSQL version: 8.0.14
Operating system:   Linux
Description:        TZ doesn't work
Details: 

I need to convert string with timezone into timestamp with timezone. Example
from docs without timezone works OK:

Code: Select all
    SELECT to_timestamp(
    '05 JAN 2000+00',
    'DD MON YYYY'
    )


According to the specification I've tries to convert the string like:

Code: Select all
    select to_timestamp( '05 Dec 2000 00:00 UTC', 'DD Mon YYYY HH24:MI TZ'
)

or

Code: Select all
    select to_timestamp( 12 Jan 2000 04:00 -05', 'DD Mon YYYY HH24:MI TZ' )

but received an error:
ERROR: "TZ"/"tz" not supported

Documentation for my postgre version says that TZ is supported.

Is this a bug in postgre or in docs?

Responses

pgsql-bugs by date

Next:From: Tom LaneDate: 2007-12-22 17:44:51
Subject: Re: BUG #3835: TZ doesn't work
Previous:From: Tom LaneDate: 2007-12-21 14:39:34
Subject: Re: BUG #3833: Index remains when table is dropped

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group