Use ISO 8601 format for dates converted to JSON, too.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: e56ec50c1622010c010e1c84bc02ce44285c4f41
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2014-08-18T02:57:46Z
Releases: 9.5.0
Use ISO 8601 format for dates converted to JSON, too.

Commit f30015b6d794c15d52abbb3df3a65081fbefb1ed made this happen for
timestamp and timestamptz, but it seems pretty inconsistent to not
do it for simple dates as well.

(In passing, I re-pgindent'd json.c.)

Files

PathChange+/−
doc/src/sgml/release-9.4.sgml modified +5 −2
src/backend/utils/adt/json.c modified +43 −12