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 date formatting for perspective-viewer-datagrid plugin #2904

Merged
merged 2 commits into from
Jan 27, 2025
Merged

Conversation

texodus
Copy link
Member

@texodus texodus commented Jan 25, 2025

Fixes #2894, an issue with perspective-viewer-datagrid's formatting. Though internally Perspective date columns have no timezone offset, we use JavaScript Date types to format these values to the locale/ui settings, which by default will format to string in local time, causing date columns to appear off-by-one in this plugin.

Added a test based on the repro provided, which asserts (sans UI) that Perspective's engine encodes and decodes date columns types transitively.

Signed-off-by: Andrew Stein <steinlink@gmail.com>
Signed-off-by: Andrew Stein <steinlink@gmail.com>
@texodus texodus added the bug Concrete, reproducible bugs label Jan 25, 2025
@texodus texodus merged commit f9d6cec into master Jan 27, 2025
13 checks passed
@texodus texodus deleted the fixes-fixes branch January 27, 2025 02:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Concrete, reproducible bugs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Displayed date & filtered input appear to be in different timezones
1 participant