Skip to content

Comments

Add a very hacky solution to somewhat handle datetime formats#81

Merged
martialblog merged 1 commit intomainfrom
feature/timefmt
Feb 10, 2026
Merged

Add a very hacky solution to somewhat handle datetime formats#81
martialblog merged 1 commit intomainfrom
feature/timefmt

Conversation

@martialblog
Copy link
Member

@martialblog martialblog commented Feb 9, 2026

At the time of writing, uPlot did not have a good way to customize the templates, so this alleviates the situation a bit. I'm aware that it is not optimal.

Example:

screenshot_2026-02-09-155722 screenshot_2026-02-09-155739

Note, I did not use any delimiters on purpose since they vary from country to country. Once uPlot has a solution we can use Intl.DateTimeFormat

Fixes #75

@martialblog martialblog self-assigned this Feb 9, 2026
@martialblog martialblog added this to the v0.3.0 milestone Feb 9, 2026
At the time of writing, uPlot did not have a good way to customize
the templates, so this alleviates the situation a bit. I'm aware
that it is not optimal
@martialblog martialblog merged commit 38dc1c6 into main Feb 10, 2026
2 checks passed
@martialblog martialblog deleted the feature/timefmt branch February 10, 2026 08:36
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.

[Bug]: Canvas and hover date format inconsistent

1 participant