joplin-plugin-bundle icon indicating copy to clipboard operation
joplin-plugin-bundle copied to clipboard

Sidebar does not respect local time format settings

Open fbartels opened this issue 3 years ago • 2 comments

Hi, I stumbled upon your plugin yesterday and it seemed a nice combination of little helpers so I wanted to try it out.

Since I am living in europe I have my Joplin date format set to dd.mm.yyyy. But this setting seems to be ignored when creating todos with a date assigned. Instead inline todos are always parsed as mm.dd.yyyy.

fbartels avatar Sep 30 '22 11:09 fbartels

This plugin uses https://github.com/wanasit/chrono for date string parsing because it is difficult for me to handle all possible date formats.

After checking its document, I haven't found anything that can set locale to a country yet. The package chrono only cares about the language instead.

SeptemberHX avatar Oct 02 '22 03:10 SeptemberHX

Ah, that library also parses natural language, then it kind of makes sense to differentiate by language and not date format. I found https://github.com/wanasit/chrono/commit/c02307a8d377901c4fc1ffb08dcf2132ccd7c2d5, but i guess I will try to mostly use natural language due dates.

fbartels avatar Oct 02 '22 20:10 fbartels