forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitab14a73
committed
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_chardoesn't output the minutes when time zone offset is an integer number ofhours, while EncodeDateTime outputs ":00".The code is slightly adapted from code in xml.c1 parent0ad1a81 commitab14a73
File tree
3 files changed
+56
-33
lines changed- src
- backend/utils/adt
- test/regress/expected
3 files changed
+56
-33
lines changedLines changed: 50 additions & 27 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
21 | 21 |
| |
22 | 22 |
| |
23 | 23 |
| |
| 24 | + | |
24 | 25 |
| |
25 | 26 |
| |
26 | 27 |
| |
27 |
| - | |
| 28 | + | |
28 | 29 |
| |
29 | 30 |
| |
30 | 31 |
| |
| |||
63 | 64 |
| |
64 | 65 |
| |
65 | 66 |
| |
66 |
| - | |
67 |
| - | |
68 |
| - | |
69 |
| - | |
70 |
| - | |
71 |
| - | |
72 |
| - | |
73 | 67 |
| |
74 | 68 |
| |
75 | 69 |
| |
| |||
1394 | 1388 |
| |
1395 | 1389 |
| |
1396 | 1390 |
| |
1397 |
| - | |
1398 |
| - | |
1399 |
| - | |
1400 |
| - | |
1401 |
| - | |
1402 |
| - | |
1403 |
| - | |
1404 |
| - | |
1405 |
| - | |
1406 |
| - | |
1407 |
| - | |
| 1391 | + | |
| 1392 | + | |
| 1393 | + | |
| 1394 | + | |
| 1395 | + | |
| 1396 | + | |
| 1397 | + | |
| 1398 | + | |
| 1399 | + | |
| 1400 | + | |
| 1401 | + | |
| 1402 | + | |
| 1403 | + | |
| 1404 | + | |
| 1405 | + | |
| 1406 | + | |
| 1407 | + | |
| 1408 | + | |
| 1409 | + | |
| 1410 | + | |
| 1411 | + | |
| 1412 | + | |
| 1413 | + | |
1408 | 1414 |
| |
1409 | 1415 |
| |
1410 |
| - | |
1411 |
| - | |
1412 |
| - | |
1413 |
| - | |
1414 |
| - | |
1415 |
| - | |
1416 |
| - | |
1417 |
| - | |
| 1416 | + | |
| 1417 | + | |
| 1418 | + | |
| 1419 | + | |
| 1420 | + | |
| 1421 | + | |
| 1422 | + | |
| 1423 | + | |
| 1424 | + | |
| 1425 | + | |
| 1426 | + | |
| 1427 | + | |
| 1428 | + | |
| 1429 | + | |
| 1430 | + | |
| 1431 | + | |
| 1432 | + | |
| 1433 | + | |
| 1434 | + | |
| 1435 | + | |
| 1436 | + | |
| 1437 | + | |
| 1438 | + | |
| 1439 | + | |
| 1440 | + | |
1418 | 1441 |
| |
1419 | 1442 |
| |
1420 | 1443 |
| |
|
Lines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
420 | 420 |
| |
421 | 421 |
| |
422 | 422 |
| |
423 |
| - | |
424 |
| - | |
425 |
| - | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
426 | 426 |
| |
427 | 427 |
| |
428 | 428 |
| |
|
Lines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
420 | 420 |
| |
421 | 421 |
| |
422 | 422 |
| |
423 |
| - | |
424 |
| - | |
425 |
| - | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
426 | 426 |
| |
427 | 427 |
| |
428 | 428 |
| |
|
0 commit comments
Comments
(0)