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

Tabulator: Fix editing a table that contains a timezone-aware datetime column #6879

Merged
merged 4 commits into from
May 31, 2024

Conversation

maximlt
Copy link
Member

@maximlt maximlt commented May 30, 2024

Fixes #6673

Copy link

codecov bot commented May 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.06%. Comparing base (55f71a9) to head (f2ebc0d).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6879      +/-   ##
==========================================
- Coverage   81.52%   81.06%   -0.47%     
==========================================
  Files         319      319              
  Lines       46895    46915      +20     
==========================================
- Hits        38233    38030     -203     
- Misses       8662     8885     +223     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

panel/reactive.py Outdated Show resolved Hide resolved
panel/reactive.py Outdated Show resolved Hide resolved
panel/tests/widgets/test_tables.py Show resolved Hide resolved
@philippjfr philippjfr merged commit fa1c9fc into main May 31, 2024
15 checks passed
@philippjfr philippjfr deleted the issue6637/tabulator_datetime_fix branch May 31, 2024 11:49
Comment on lines +1238 to +1239
.dt.tz_convert('utc')
.dt.tz_localize(None)
Copy link
Member

Choose a reason for hiding this comment

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

What is the intention behind these last two lines? This will soon cause pandas to error and also I'm quite confused. This localizes in the original provided timezone, then shifts it to UTC, which seems wrong.

Copy link
Member

Choose a reason for hiding this comment

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

I've made a change here 8d1e9f8

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.

Tabulator: error when editing a table that contains a column with dtype datetime64[ns, UTC]
3 participants