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

Parse n months ago problem #1

Open
tuo opened this issue May 30, 2011 · 1 comment
Open

Parse n months ago problem #1

tuo opened this issue May 30, 2011 · 1 comment

Comments

@tuo
Copy link

tuo commented May 30, 2011

Hi ,
It seems like that Chronic.parse("3 months ago") doesn't use Rails built-in time parse function or like that. It seems like Chronic uses 30 days as a unit to calculate months, which is really not good.
Let's say, i.e:
today is 2011/05/30,
well ,using Chronic.parse("3 months ago") will get 2011/03/02( just minus 90 days) , but obviously it is not what we want.
And if you use Rails built-in time support, "3.months.ago" will get 2011/02/28 which is exactly what we want.

Any thought?

Thanks

@noahd1
Copy link
Owner

noahd1 commented May 31, 2011

Hi Tuo -

Have you tried using the main fork of Chronic? This branch of mine hasn't been updated in quite some time. I recommend trying the main fork at mojombo/chronic, and if you are still experiencing problems, opening a ticket there.

Thanks.

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

No branches or pull requests

2 participants