| От | Tom Lane |
|---|---|
| Тема | Re: YTA Time Zone Question |
| Дата | |
| Msg-id | 14723.1175879735@sss.pgh.pa.us обсуждение |
| Ответ на | YTA Time Zone Question (Danny Armstrong <detarmstrong@visiontree.com>) |
| Список | pgsql-general |
Danny Armstrong <detarmstrong@visiontree.com> writes:
> What am I misunderstanding and how do I get it to interpret the value as
> utc and then not offset it when I view it, like python and ruby do?
What you're misunderstanding is that you messed up the data when you put
it into the database, probably by having a timezone setting *at that
time* that didn't agree with what your source application expected.
If the application sends timestamp strings that don't explicitly include
a timezone identifier, PG will assume that they are in the zone
identified by TimeZone, and in any case it will then convert the time
to UTC for storage.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера