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

"1.month" does not work correctly #12

Closed
yole opened this issue Aug 12, 2016 · 3 comments
Closed

"1.month" does not work correctly #12

yole opened this issue Aug 12, 2016 · 3 comments
Assignees
Labels

Comments

@yole
Copy link

yole commented Aug 12, 2016

Due to the incorrect subtraction here the expression "1.month" returns a duration of 0 months. As a consequence, this obviously incorrect test passes: assertEquals(Dates.today, 1.month.ago)

@hotchemi hotchemi added the bug label Aug 12, 2016
@hotchemi
Copy link
Owner

Ah sorry it's my fault...thx for your bug report.

@hotchemi hotchemi self-assigned this Aug 12, 2016
@hotchemi
Copy link
Owner

Fixed the bug in 0.9.0. Thx!

@krystiankaluzny
Copy link

Hi, it doesn't seem to be fixed. There is still this - 1 in month property in IntExtensions file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants