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

use local instead of utc in parse_relative_time #80

Closed
wants to merge 1 commit into from

Conversation

drmorr0
Copy link
Contributor

@drmorr0 drmorr0 commented Jun 11, 2024

The parse_relative_time function is using Utc::now().date_naive() to get today's date, but parse_relative_time_at_date uses Local::now().date_naive(); these two values are subtracted, which gives incorrect results when Utc and Local time span midnight.

I think this fixes #36, at least in the short term

@drmorr0
Copy link
Contributor Author

drmorr0 commented Sep 17, 2024

@tertsdiepraam hi, just wondering if there's any progress towards merging this? Happy to make any changes as needed.

@cakebaker
Copy link
Collaborator

I think this has been fixed in #85?

@drmorr0
Copy link
Contributor Author

drmorr0 commented Nov 17, 2024

Looks like it, thanks! Any chance we can get a new release with that fix?

@drmorr0 drmorr0 closed this Nov 17, 2024
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

Successfully merging this pull request may close these issues.

Cargo test fails at 0:20 JST
2 participants