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

fix timezone in default card time format string #1575

Merged
merged 1 commit into from Oct 10, 2023

Conversation

amerberg
Copy link
Contributor

@amerberg amerberg commented Oct 6, 2023

The default card formats timezones in dataframes with time_format = "%Y-%m-%dT%H:%M:%SZ". This should be time_format = "%Y-%m-%dT%H:%M:%S%Z"; without the % before the Z the formatted time will end with the literal Z, which means UTC time.

valayDave
valayDave previously approved these changes Oct 10, 2023
Copy link
Collaborator

@valayDave valayDave left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Will require a rebase if we merge #1574 first. Thanks for doing this!

@@ -365,7 +365,7 @@ def _parse_pandas_dataframe(self, data_object, truncate=True):
if truncate:
data = data_object.head()
index_column = data.index
time_format = "%Y-%m-%dT%H:%M:%SZ"
time_format = "%Y-%m-%dT%H:%M:%S%Z"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is safe to remove this since #1574 already handles the index case.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@savingoyal savingoyal merged commit 545e0cb into Netflix:master Oct 10, 2023
20 checks passed
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.

None yet

3 participants