Re: timestamp default values

From: Brendan Jurd <direvus(at)gmail(dot)com>
To: Michael Fuhr <mike(at)fuhr(dot)org>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-general(at)postgresql(dot)org
Subject: Re: timestamp default values
Date: 2005-08-07 02:34:30
Message-ID: 37ed240d05080619343a465981@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 8/7/05, Michael Fuhr <mike(at)fuhr(dot)org> wrote:
> On Sun, Aug 07, 2005 at 12:05:43PM +1000, Brendan Jurd wrote:
> > => select 'Sat Aug 06 12:00:43.668919 2005 EST'::timestamp;
> > ERROR: 22007: invalid input syntax for type timestamp: "Sat Aug 06
> > 12:00:43.668919 2005 EST"
>
> What are your timezone and australian_timezones settings? I can
> duplicate the problem thusly:
>
> set australian_timezones to on;
> set timezone to 'EST';
> select 'Sat Aug 06 12:00:43.668919 2005 EST'::timestamp;
> ERROR: invalid input syntax for type timestamp: "Sat Aug 06 12:00:43.668919 2005 EST"
>
> set australian_timezones to off;
> select 'Sat Aug 06 12:00:43.668919 2005 EST'::timestamp;
> timestamp
> ----------------------------
> 2005-08-06 12:00:43.668919
> (1 row)
>
> --
> Michael Fuhr
>

=> show timezone;
TimeZone
---------------
Australia/ACT
(1 row)

=> show australian_timezones;
australian_timezones
----------------------
on
(1 row)

--
BJ

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Brendan Jurd 2005-08-07 02:38:59 Re: timestamp default values
Previous Message Bruce Momjian 2005-08-07 02:20:09 Re: ACM Sigmod interview with Bruce Lindsay