Re: BUG #12578: row_to_json() and to_json() add 'T' in timestamp field.
В списке pgsql-bugs по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: BUG #12578: row_to_json() and to_json() add 'T' in timestamp field. |
| Дата | |
| Msg-id | 21765.1421510357@sss.pgh.pa.us обсуждение |
| Ответ на | BUG #12578: row_to_json() and to_json() add 'T' in timestamp field. (yoonghm@gmail.com) |
| Ответы |
Re: BUG #12578: row_to_json() and to_json() add 'T' in
timestamp field.
|
| Список | pgsql-bugs |
yoonghm@gmail.com writes:
> row_to_json and to_json replace the space between date and time.
This is not a bug; it's an intentional behavioral change. Per the
third bullet point in the 9.4 release notes:
* When converting values of type date, timestamp or timestamptz to JSON,
render the values in a format compliant with ISO 8601 (Andrew Dunstan)
Previously such values were rendered according to the current DateStyle
setting; but many JSON processors require timestamps to be in ISO 8601
format. If necessary, the previous behavior can be obtained by
explicitly casting the datetime value to text before passing it to the
JSON conversion function.
regards, tom lane
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера