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

Setting to change timestamps to be in local time zone #274

Open
jatloe opened this issue Aug 14, 2023 · 3 comments
Open

Setting to change timestamps to be in local time zone #274

jatloe opened this issue Aug 14, 2023 · 3 comments
Labels

Comments

@jatloe
Copy link
Contributor

jatloe commented Aug 14, 2023

59be4f3

@jatloe jatloe added the feature label Aug 14, 2023
@vEnhance
Copy link
Owner

The problem is that "local time zone" is ill-defined, see https://docs.djangoproject.com/en/4.2/topics/i18n/timezones/#selecting-the-current-time-zone

The current time zone is the equivalent of the current locale for translations. However, there’s no equivalent of the Accept-Language HTTP header that Django could use to determine the user’s time zone automatically. Instead, Django provides time zone selection functions. Use them to build the time zone selection logic that makes sense for you.

This was actually why I switched to UTC specifically for pset submissions to begin with.

@jatloe
Copy link
Contributor Author

jatloe commented Aug 14, 2023

Maybe make it so that you can choose your own time zone wrt UTC when turning on that setting then?

@vEnhance
Copy link
Owner

vEnhance commented Aug 14, 2023 via email

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

No branches or pull requests

2 participants