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

Colloquial issue with future dates #302

Closed
ericdevries opened this issue Oct 12, 2016 · 1 comment
Closed

Colloquial issue with future dates #302

ericdevries opened this issue Oct 12, 2016 · 1 comment
Assignees
Labels
Milestone

Comments

@ericdevries
Copy link

ericdevries commented Oct 12, 2016

When doing the following code

// assume date is 16 days from now
let datePart = try date.colloquial(toDate: DateInRegion())
print("date stuff: \(datePart.colloquial)") // prints "date stuff: in -16 days"

I get a negative number for the days. When reversing it, I get the text "2 weeks ago".

malcommac added a commit that referenced this issue Oct 17, 2016
Fix for #302: negative numbers in colloquial strings
@malcommac malcommac added the bug label Oct 17, 2016
@malcommac malcommac added this to the 4.0.6 milestone Oct 17, 2016
@malcommac malcommac self-assigned this Oct 17, 2016
@malcommac
Copy link
Owner

malcommac commented Oct 17, 2016

Fixed and ready for 4.0.6 (999498c)
Thank you for your report.

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

2 participants