Re: RESTORING A DATABASE WITH DIFFERENT TIMEZONES

Поиск
Список
Период
Сортировка
От Brandon Aiken
Тема Re: RESTORING A DATABASE WITH DIFFERENT TIMEZONES
Дата
Msg-id F8E84F0F56445B4CB39E019EF67DACBA401A8A@exchsrvr.winemantech.com
обсуждение исходный текст
Ответ на RESTORING A DATABASE WITH DIFFERENT TIMEZONES  ("Rodrigo Sakai" <rodrigo.sakai@zanthus.com.br>)
Ответы RES: RESTORING A DATABASE WITH DIFFERENT TIMEZONES  ("Rodrigo Sakai" <rodrigo.sakai@zanthus.com.br>)
Список pgsql-general
'2006-12-20 00:00:00-02' and '2006-12-19 23:00:00-03' *are* the same
time.  You *did* preserve it.  Is your application unaware of timezone?

If you want the server to behave like it's in a different time zone that
where it actually is, configure the locale in postgresql.conf.

http://www.postgresql.org/docs/8.2/interactive/runtime-config-client.htm
l#GUC-TIMEZONE


--
Brandon Aiken
CS/IT Systems Engineer
________________________________________
From: pgsql-general-owner@postgresql.org
[mailto:pgsql-general-owner@postgresql.org] On Behalf Of Rodrigo Sakai
Sent: Thursday, December 21, 2006 12:33 PM
To: pgsql-general@postgresql.org
Subject: [GENERAL] RESTORING A DATABASE WITH DIFFERENT TIMEZONES

Hi all,

I'm having some troubles with time zones! I have a database dump file
that have the date fields stored as '2006-12-20 00:00:00-02'!
And I have to restore it in a database that has the time zone configured
as 'BRST' (-3 from GMT). So, when it is restored the value becomes
'2006-12-19 23:00:00-03'. Ok this is logic because the difference of
time zones.

But I have to restore it and maintain the same value of datetime! How
can I do it?????

Thanks in advance!

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

Предыдущее
От: "Rodrigo Sakai"
Дата:
Сообщение: RESTORING A DATABASE WITH DIFFERENT TIMEZONES
Следующее
От: Mike Leahy
Дата:
Сообщение: Compiling PL/R library on win32