Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Transform class and subclasses #14

Open
Glavin001 opened this issue Jul 17, 2014 · 6 comments
Open

Implement Transform class and subclasses #14

Glavin001 opened this issue Jul 17, 2014 · 6 comments

Comments

@Glavin001
Copy link
Member

See http://emberjs.com/api/data/classes/DS.Transform.html

@Glavin001
Copy link
Member Author

  • Date
  • ObjectId
  • Boolean
  • Number (there are a few because CoreData supports integers of various precisions)

@Glavin001
Copy link
Member Author

How to convert NSDate into Unix timestamp in Objective C/iPhone?: http://stackoverflow.com/a/3023326

@Glavin001
Copy link
Member Author

How to do math on NSNumber: http://stackoverflow.com/a/15437942

@Glavin001
Copy link
Member Author

Create NSDate from Unix timestamp: http://stackoverflow.com/a/5827263

Glavin001 added a commit that referenced this issue Jul 22, 2014
See #14. Improve DateTransform class.

See #7. Implement usage of DateTransform when applicable for respective AttributeType.
Use keyForAttribute to rename keys from payloads to model attribute names.
@Glavin001
Copy link
Member Author

Detect AttributeType and use appropriate Transform: http://stackoverflow.com/a/19818990

@Glavin001
Copy link
Member Author

There is a Transformable AttributeType that should be researched further: http://stackoverflow.com/a/1601546

Glavin001 added a commit that referenced this issue Aug 12, 2014
It was serializing as decimal in seconds (with milliseconds perdition) while it should have been an integer in milliseconds.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant