You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm looking into the NSMoment Cocoapod for date conversions. This may solve some of the issues we're seeing with date conversions. I've never been completely happy with that. A failing spec would really be helpful.
(main)> MotionModel::DateParser.parse_date('2012-04-23T18:25:43.511Z')
2013-10-29 17:09:35.489 stud[71594:80b] date_parser.rb:8:in
parse_date:': undefined method
date' for nil:NilClass (NoMethodError)removing 'T" from the string:
=> #<NoMethodError: undefined method `date' for nil:NilClass>
(main)> MotionModel::DateParser.parse_date('2012-04-23 18:25:43.511Z')
=> 2012-04-24 04:25:43 +1000
Here is more info on JSON date formatting:
http://stackoverflow.com/questions/10286204/the-right-json-date-format
The text was updated successfully, but these errors were encountered: