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

Enforce UTC for timestamps #1071

Open
jaburgoyne opened this issue Jun 6, 2024 · 2 comments
Open

Enforce UTC for timestamps #1071

jaburgoyne opened this issue Jun 6, 2024 · 2 comments

Comments

@jaburgoyne
Copy link
Contributor

So far as I can see, the timestamps in our JSON exports have always been and are still in the UTC time zone. For consistency, I fully support this choice!

I'm not sure, however, that we formally enforce this anywhere or have it documented. Could we do that?

@drikusroor
Copy link
Contributor

The configured time zone for MUSCLE is Europe/Amsterdam. However, the settings USE_TZ is also turned on, which means that all datetime objects are stored timezone-aware.

@jaburgoyne
Copy link
Contributor Author

That sounds good: I would already perhaps document somewhere that we always want this to be so (and also include it in the documentation for setting up MUSCLE elsewhere).

The issue also has to do with JSON exports. It seems like – probably because of USE_TZ – the export defaults to UTC. I like that! But let's make it explicit rather than relying on a default (if we haven't done so already).

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

2 participants