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

"yesterday week" returns equivalent to "next week" #9

Open
GoogleCodeExporter opened this issue Mar 1, 2016 · 0 comments
Open

"yesterday week" returns equivalent to "next week" #9

GoogleCodeExporter opened this issue Mar 1, 2016 · 0 comments

Comments

@GoogleCodeExporter
Copy link

Date.parse("yesterday week").equals(Date.parse("next week")); //
[PASS]which is not good

The following should pass...
Date.parse("yesterday week").equals(Date.parse("next week").add(-1).day());
// currently fails

This is a bit of known issue when combining Relative dates ("tomorrow")
with date math ("+week"). One hand is not talking to the other.

A fix is planned and should be available in the next release (Beta 1) of
the Parser.

Original issue reported on code.google.com by geoff%co...@gtempaccount.com on 27 Nov 2007 at 10:36

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

No branches or pull requests

1 participant