Spacex-api: The /info/history returns invalid dates.

Created on 25 May 2018  路  6Comments  路  Source: r-spacex/SpaceX-API

Some of the history events returned from https://api.spacexdata.com/v2/info/history contains invalid dates:

  • 2014-09-00T00:00:00Z (day as 00?)
  • 2008-12-00T00:00:00Z (same as above)

In the result, C#'s DateTime.Parse throws exceptions when trying to parse these strings during JSON deserialization. I have workaround by replacing 00T with 01T but it would be good to fix it in the database.

Completed Data Fix

All 6 comments

Gotcha. Working on a fix

Fixed

Thanx for your fix, but I think there is still problem. Now, if I see correctly, dates from the first post have still 00 day but hour set as 01 which not solve the problem:

  • 2008-12-00T01:00:00Z instead of 2008-12-01T00:00:00Z (for example)
  • 2014-09-00T01:00:00Z instead of 2014-01-01T00:00:00Z

Found the correct dates. Should be good now

Now everything works fine, thanx!

@jakewmeyer Would it be possible to add the launch_date_unix to the model like the launches have?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

markvital picture markvital  路  4Comments

haroldadmin picture haroldadmin  路  6Comments

jesusrp98 picture jesusrp98  路  8Comments

esper-creative picture esper-creative  路  5Comments

markvital picture markvital  路  9Comments