Re: jbuilder and timestamps

Поиск
Список
Период
Сортировка
От Andrew Sullivan
Тема Re: jbuilder and timestamps
Дата
Msg-id 20021104122406.H16828@mail.libertyrms.com
обсуждение исходный текст
Ответ на jbuilder and timestamps  (miguel angel rojas aquino <mrojas_aquino@mail.flashmail.com>)
Список pgsql-jdbc
On Fri, Nov 01, 2002 at 04:09:44PM -0600, miguel angel rojas aquino wrote:
> we are developing an application using jbuilder 5 and postgresql
> 7.2.2-1PGDG, and found some strange beheavior with the timestamps, say
> for example, in our database we have a record like this one:
>
>           id_emp | name             |      date
> --------+--------+------------------------
>               1004 |  laura              | 2002-09-19 00:00:00-05
>
> but when displaying this same date in a textfield in our application, it
> says the date is 2002-09-18 23:00:00!!!!

It sounds like your PGTZ setting is wrong somewhere.  In your case,
it appears you want Eastern time.  So make sure that your PGTZ
setting is EST5EDT.

A

----
Andrew Sullivan                         204-4141 Yonge Street
Liberty RMS                           Toronto, Ontario Canada
<andrew@libertyrms.info>                              M2P 2A8
                                         +1 416 646 3304 x110


В списке pgsql-jdbc по дате отправления:

Предыдущее
От: Dave Cramer
Дата:
Сообщение: Re:
Следующее
От: Barry Lind
Дата:
Сообщение: Re: jbuilder and timestamps