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

Date and Datetime transforms #96

Merged
merged 4 commits into from
Jul 22, 2014
Merged

Date and Datetime transforms #96

merged 4 commits into from
Jul 22, 2014

Conversation

dustinfarris
Copy link
Collaborator

These two transforms allow the user to use date and datetime types in their models.

App.MyModel = DS.Model.extend({
  birthday: DS.attr('date'),
  nextMeeting: DS.attr('datetime')
});

The integration tests are potentially problematic since the JS Date object is time-zone aware—tests may fail when run in timezones other than eastern. I will address this in a future PR.

@dustinfarris
Copy link
Collaborator Author

Travis is failing.. guess I'll have to clear out those timezone issues sooner than I thought.

dustinfarris pushed a commit that referenced this pull request Jul 22, 2014
Date and Datetime transforms
@dustinfarris dustinfarris merged commit 13d6659 into toranb:master Jul 22, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant