[SERVER-11813] In strict-json mode, represent dates with strings. Created: 21/Nov/13 Updated: 27/Oct/15 Resolved: 28/Dec/13 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | 2.5.4 |
| Fix Version/s: | 2.5.5 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Andy Schwerin | Assignee: | Shaun Verch |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||||||||||
| Backwards Compatibility: | Minor Change | ||||||||||||||||||||||||||||
| Participants: | |||||||||||||||||||||||||||||
| Description |
|
Rather than represent dates in strict json as number of milliseconds since the UNIX epoch, they should be represented as an ISO-8601 date string, as follows:
|
| Comments |
| Comment by Robert Stam [ 28/Apr/14 ] |
|
This is a breaking change to any programs that were consuming the output of mongoexport. |
| Comment by Githook User [ 19/Dec/13 ] |
|
Author: {u'username': u'Zarkantho', u'name': u'Shaun Verch', u'email': u'shaun.verch@10gen.com'}Message: |
| Comment by Githook User [ 17/Dec/13 ] |
|
Author: {u'username': u'Zarkantho', u'name': u'Shaun Verch', u'email': u'shaun.verch@10gen.com'}Message: Revert " This reverts commit 8e3fda2d14c9cc7626bfbabfd834a34ee0d95e64. |
| Comment by Githook User [ 16/Dec/13 ] |
|
Author: {u'username': u'Zarkantho', u'name': u'Shaun Verch', u'email': u'shaun.verch@10gen.com'}Message: |
| Comment by Eric Milkie [ 26/Nov/13 ] |
|
We can use dateToISOStringUTC(Date_t) in mongo/util/time_support.h. Note, if we want to let customers get times in local time, we can use dateToISOStringLocal(Date_t). |