ontehfritz / api.mtgdb.info

Project closing first of August 2015
http://www.mtgdb.info/
MIT License
36 stars 8 forks source link

Fix date objects #11

Closed nickhoffman closed 10 years ago

nickhoffman commented 10 years ago

Date objects are being returned as odd strings. E.g. "/Date(1184284800000)/" . A more appropriate value would be something that JavaScript's Date() accepts:

1) An integer representing the number of milliseconds since 1970; or

2) A string in the ISO-8601 standard, which is "YYYY-MM-DDTHH:mm:ss.sssZ".

http://api.mtgdb.info/sets/10E http://api.mtgdb.info/cards/106368