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

Remove hack to prevent years < 1970 in DateTime #7

Merged
merged 1 commit into from
Dec 21, 2016

Conversation

herwinw
Copy link
Member

@herwinw herwinw commented Dec 20, 2016

Time can handle dates before epoch perfectly fine. The test here is
probably something from ancient times and breaks stuff these days
without reason.

Time can handle dates before epoch perfectly fine. The test here is
probably something from ancient times and breaks stuff these days
without reason.
@herwinw
Copy link
Member Author

herwinw commented Dec 20, 2016

And for the rest of the world: If you ever feel the need to include this kind of workarounds in your code, please add a unit test to see if the other object (outside of your reach) fails when trying to use the invalid range. That way, if the limitation is ever lifted upstream, you don't end up with outdated workarounds.

@hsbt hsbt merged commit 7d61f34 into ruby:master Dec 21, 2016
@herwinw herwinw deleted the datetime_and_epoch branch December 21, 2016 10:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants