diff options
author | Andrew Dunstan <andrew@dunslane.net> | 2014-06-03 18:26:47 -0400 |
---|---|---|
committer | Andrew Dunstan <andrew@dunslane.net> | 2014-06-03 18:26:47 -0400 |
commit | ab14a73a6ca5cc4750f0e00a48bdc25a2293034a (patch) | |
tree | f2b0ad98b0346ed6824798052d752d9bd48e64ba /config | |
parent | 0ad1a816320a2b539a51628e2a0b1e83ff096b1d (diff) | |
download | postgresql-ab14a73a6ca5cc4750f0e00a48bdc25a2293034a.tar.gz |
Use EncodeDateTime instead of to_char to render JSON timestamps.
Per gripe from Peter Eisentraut and Tom Lane.
The output is slightly different, but still ISO 8601 compliant: to_char
doesn't output the minutes when time zone offset is an integer number of
hours, while EncodeDateTime outputs ":00".
The code is slightly adapted from code in xml.c
Diffstat (limited to 'config')
0 files changed, 0 insertions, 0 deletions