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
{{ message }}
This repository has been archived by the owner on Sep 12, 2018. It is now read-only.
I can override - (NSDateFormatter *)defaultFormatter in my NSManagedObject subclass but some of the fields have different formats within the same model. Any suggestions on overriding the date format per attribute?
@CaseyB Could you make your formats consistent? That would probably be ideal. If you need field-specific formats, you're best off overriding each attribute yourself and using the primitive getter/setters, etc.
Unfortunately I don't have control over the format from the server. We were using MagicalRecord and it gave us the option to map a date format per attribute but it had a lot of other shortcomings. So far ObjectiveRecord is great, this is the only real snag I've hit.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi,
is there a way of setting a date formatter for parsing dates? In the JSON answer I'm getting, the dates are set as milliseconds since 1970 e.g.
cheers
The text was updated successfully, but these errors were encountered: