From: | Robin Ericsson <robin(dot)ericsson(at)profecta(dot)se> |
---|---|
To: | Postgres general mailing list <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Bug in function to_char() !! |
Date: | 2004-07-01 13:29:32 |
Message-ID: | 1088688572.25161.127.camel@cdontest.noname4us.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Thu, 2004-07-01 at 14:48, Stefan Kaltenbrunner wrote:
> Najib Abi Fadel wrote:
> > I exactly typed what i sent.
> > Anyone with Postgresql 7.3.2 PLEASE try it and tell me what happens.
> >
> > SELECT to_char('2005-03-27'::date,'DD/MM/YYYY');
>
>
> template1=# select version();
> version
> ------------------------------------------------------------------------
> PostgreSQL 7.3.2 on i386-pc-linux-gnu, compiled by GCC gcc (GCC) 3.2.3
> (1 row)
>
> template1=# SELECT to_char('2005-03-27'::date,'DD/MM/YYYY');
> to_char
> ------------
> 27/03/2005
> (1 row)
I had the same problem in php due to DST, but that I guess depends on
the underlaying (buggy?) libc.
using 2005-03-27 12:00 instead of just 2005-03-27 solved the problem for
me.
regards,
Robin
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2004-07-01 14:25:13 | Re: Internationalization |
Previous Message | Tom Lane | 2004-07-01 12:55:55 | Re: Problems restarting after database crashed (signal 11). |