Skip to content

Fix date formatting for perspective-viewer-datagrid plugin#2904

Merged
texodus merged 2 commits intomasterfrom
fixes-fixes
Jan 27, 2025
Merged

Fix date formatting for perspective-viewer-datagrid plugin#2904
texodus merged 2 commits intomasterfrom
fixes-fixes

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

Development

Successfully merging this pull request may close these issues.

Displayed date & filtered input appear to be in different timezones

1 participant