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

Common timezone information #214

Open
WenzDaniel opened this issue Sep 10, 2020 · 1 comment
Open

Common timezone information #214

WenzDaniel opened this issue Sep 10, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@WenzDaniel
Copy link
Collaborator

We should update

def run_metadata(self, run_id, projection=None):
such that all timestamps are returned with a proper timezone information to avoid confusion between UTC and LabTime.

@WenzDaniel WenzDaniel added the enhancement New feature or request label Sep 10, 2020
@ricmperes
Copy link
Contributor

This became an error inducing issue when setting the GPS_sync (#1045) and was solved with <datetime>.replace(tzinfo=datetime.timezone.utc)

start_t = doc['start'].replace(tzinfo=datetime.timezone.utc).timestamp()
end_t = doc['end'].replace(tzinfo=datetime.timezone.utc).timestamp()

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

No branches or pull requests

2 participants