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

Use NSCalendar instead of custom defines where possible #25

Merged
merged 1 commit into from
Mar 21, 2015

Conversation

knellr
Copy link
Contributor

@knellr knellr commented Mar 20, 2015

Following on from the daylight savings issue discussed in #23 and partially addressed in #24, this proposal converts the existing code to use NSCalendar instead of #defines.

Specifically, this addresses a discrepancy between dateWithDaysFromNow:, which used the constants, and dateByAddingDays:, which used the calendar. These would have returned different results at the start of daylight savings time.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 0.0% when pulling 0c30743 on knellr:use-nscalendar into af6b6e6 on azu:master.

@azu
Copy link
Owner

azu commented Mar 20, 2015

@knellr Great Work!
Don't care about coveralls :)

akuraru added a commit that referenced this pull request Mar 21, 2015
Use NSCalendar instead of custom defines where possible
@akuraru akuraru merged commit fd67262 into azu:master Mar 21, 2015
@azu azu mentioned this pull request Mar 26, 2015
2 tasks
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.

4 participants