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

TypeError: can't subtract offset-naive and offset-aware datetimes #697

Open
brunetton opened this issue Nov 6, 2024 · 0 comments
Open

Comments

@brunetton
Copy link

brunetton commented Nov 6, 2024

Hi,

I'm working with offset-aware datetime objects and wanted to display them in a friendly way to the user.

Howto reproduce

from datetime import datetime
import human_readable
date = datetime.fromisoformat("2024-11-02T20:00:00+00:00")  # offset-aware datetime
human_readable.date_time(date)
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

1 participant