bitwalker / bitwalker/timex

Timex.from_now is wrong when multiple days in the future / Might be timezone related, not sure

Open
#752 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Elixir
Stars
1.8k
Forks
407
PR merge metrics
No merged PRs in 30d

Description

### Steps to reproduce

```
Timex.from_now(DateTime.utc_now() |> Timex.shift(days: +2))
> "tomorrow"
```

Note: I'm based in Metro Manila, it's 6:40pm when I'm doing this test.

### Description of issue

- What are the expected results?
- If the date is in 2 days, I expect "In two days"

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.