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

pretty_dates crashes for intervals greater than one year #227

Closed
garrettgman opened this issue Feb 4, 2014 · 0 comments
Closed

pretty_dates crashes for intervals greater than one year #227

garrettgman opened this issue Feb 4, 2014 · 0 comments
Labels
bug an unexpected problem or unintended behavior

Comments

@garrettgman
Copy link
Member

From David A.

pretty_dates fails to compute the intervals whenever it has to extend beyond intervals of 1 year. Consider the example:

pretty_dates(c(as.Date("1993-12-05"), as.Date("2007-12-01")), 14)
As expected, it returns "1993-01-01 UTC", "1994-01-01 UTC", etc.

Now change the third argument to 7 instead of 14.
pretty_dates(c(as.Date("1993-12-05"), as.Date("2007-12-01")), 7)
One would expect "1993-01-01 UTC", "1995-01-01 UTC", etc., but instead it crashes.

@vspinu vspinu added the bug an unexpected problem or unintended behavior label Dec 14, 2014
@vspinu vspinu closed this as completed in b439a9e Oct 1, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug an unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

2 participants