Skip to content

Commit

Permalink
[timeline] Update serialization example to use ISOString dates.
Browse files Browse the repository at this point in the history
Resolves almende#2696
  • Loading branch information
bradh committed Feb 26, 2017
1 parent d0f2a63 commit b4b4a40
Showing 1 changed file with 32 additions and 6 deletions.
38 changes: 32 additions & 6 deletions examples/timeline/dataHandling/dataSerialization.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,38 @@ <h1>Serialization and deserialization</h1>

<textarea id="data">
[
{"id": 1, "content": "item 1", "start": "2014-01-01 01:00:00"},
{"id": 2, "content": "item 2", "start": "2014-01-01 02:00:00"},
{"id": 3, "content": "item 3", "start": "2014-01-01 03:00:00"},
{"id": 4, "content": "item 4", "start": "2014-01-01 04:00:00", "end": "2014-01-01 04:30:00"},
{"id": 5, "content": "item 5", "start": "2014-01-01 05:00:00", "type": "point"},
{"id": 6, "content": "item 6", "start": "2014-01-01 06:00:00"}
{
"id": 1,
"content": "item 1",
"start": "2014-01-01T01:00:00"
},
{
"id": 2,
"content": "item 2",
"start": "2014-01-01T02:00:00"
},
{
"id": 3,
"content": "item 3",
"start": "2014-01-01T03:00:00"
},
{
"id": 4,
"content": "item 4",
"start": "2014-01-01T04:00:00",
"end": "2014-01-01T04:30:00"
},
{
"id": 5,
"content": "item 5",
"start": "2014-01-01T05:00:00",
"type": "point"
},
{
"id": 6,
"content": "item 6",
"start": "2014-01-01T06:00:00"
}
]
</textarea>

Expand Down

0 comments on commit b4b4a40

Please sign in to comment.