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

Would you consider adding timezone management to DateTimeField? #833

Open
Colin-b opened this issue Feb 5, 2024 · 1 comment
Open

Would you consider adding timezone management to DateTimeField? #833

Colin-b opened this issue Feb 5, 2024 · 1 comment

Comments

@Colin-b
Copy link

Colin-b commented Feb 5, 2024

We store our values as UTC localized but we expect our clients to use another timezone that make more sense when using the interface.

Having the ability to specify a data timezone and a display timezone would be nice, but maybe this is too far fetched.

What do you think?

If you are open to the idea, I could draft a PR for this.

Thanks again

@roshii
Copy link

roshii commented Sep 5, 2024

With datetime.utcnow() being deprecated and replaced by datetime.now(UTC), it becomes impossible to compare the latter with offset-naive datetimes provided through wtforms. If not addressed, this issue will likely make wtform not compatible with future python version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants