Re: BUG #4073: ERROR: invalid input syntax for type timestamp: "Sat Mar 29 04:47:06 WEST 2008"

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема Re: BUG #4073: ERROR: invalid input syntax for type timestamp: "Sat Mar 29 04:47:06 WEST 2008"
Дата
Msg-id 47F1525E.108@enterprisedb.com
обсуждение исходный текст
Ответ на BUG #4073: ERROR: invalid input syntax for type timestamp: "Sat Mar 29 04:47:06 WEST 2008"  ("Pedro Alves" <pedro@neraka.no-ip.org>)
Ответы Re: BUG #4073: ERROR: invalid input syntax for type timestamp: "Sat Mar 29 04:47:06 WEST 2008"  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
Pedro Alves wrote:
> Since saturday Portugal is in WEST timezone. Some of my programs stopped
> working. Those programs use the output of java.util.Date, and come out as
> "Sat Mar 29 04:47:06 WEST 2008".
>
> Though not everyone uses that kind of output in timezones, everyone that
> uses a recent jvm and are in portugal, faroe island or canary island will
> have issues with this. Ref:
> http://www.timeanddate.com/library/abbreviations/timezones/eu/west.html

We don't include all timezone abbreviations, because they're generally
not well-defined. Not sure if that's the case with WEST, but it seems
quite likely. We do have the abbreviation WETDST for that, though.

> I found a way to *hack* the solution by copying the file Portugal to WEST in
> share/timezones

No need for such hacks, see:

http://www.postgresql.org/docs/8.3/interactive/datetime-config-files.html

--
   Heikki Linnakangas
   EnterpriseDB   http://www.enterprisedb.com

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

Предыдущее
От: "Pedro Alves"
Дата:
Сообщение: BUG #4073: ERROR: invalid input syntax for type timestamp: "Sat Mar 29 04:47:06 WEST 2008"
Следующее
От: "Lars Olson"
Дата:
Сообщение: BUG #4074: Using SESSION_USER or CURRENT_USER in a view definition is unsafe