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

DateTime relative formatter shows "in 0 seconds" instead of "0 seconds ago" #185

Closed
eproxus opened this issue Jun 9, 2016 · 4 comments
Closed

Comments

@eproxus
Copy link

eproxus commented Jun 9, 2016

Steps to reproduce

iex(22)> Timex.Format.DateTime.Formatters.Relative.format!(Timex.DateTime.now, "{relative}")
"in 0 seconds"

Description of issue

The relative datetime formatters returns "in 0 seconds" instead of "0 seconds ago" when the time is now.

@eproxus
Copy link
Author

eproxus commented Jun 10, 2016

Maybe it should even be "now" when the time is around 0 seconds.

@bitwalker
Copy link
Owner

Yeah it should be "now", I'll get that fixed

@bitwalker
Copy link
Owner

Fixed in 3.0

@eproxus
Copy link
Author

eproxus commented Jul 13, 2016

Thanks for the fix, works brilliantly!

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