Skip to content

record api_last_activity as timezone aware timestamp #52

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

Merged
merged 1 commit into from
Oct 22, 2018
Merged

record api_last_activity as timezone aware timestamp #52

merged 1 commit into from
Oct 22, 2018

Conversation

gweis
Copy link
Contributor

@gweis gweis commented Oct 21, 2018

fixes problems with notebook status api when producing last_activity timestamp.

i.e. in this line https://github.com/jupyter/notebook/blob/4f9a6cbdd81ed26a7979d993766d7223e1c72e5c/notebook/notebookapp.py#L367
when comparing (max(...)) all timestamps it produces a
TypeError: can't compare offset-naive and offset-aware datetimes

…with notebook status api when producing last_activity timestamp)
@betatim
Copy link
Member

betatim commented Oct 22, 2018

Thanks! I'll merge this now and if there is a problem we can follow up in a new PR.

@betatim betatim merged commit 41d0fae into jupyterhub:master Oct 22, 2018
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

Successfully merging this pull request may close these issues.

2 participants