WeMakeMachines / joplin-plugin-event-calendar

A simple event calendar plugin for Joplin
MIT License
7 stars 1 forks source link

date format wrong #3

Open MarcS1975 opened 9 months ago

MarcS1975 commented 9 months ago

Hi - can you change the plugin so it takes the date format from Joplin. I have Joplin set to dd-mm-yy but your plugin needs mm-dd-yy

WeMakeMachines commented 9 months ago

Unfortunately this is a limitation with JavaScript's Date API - this is how it expects the date to be formatted. There should be a better way to handle this though, I admit. I also prefer dd-mm-yy. I will have to look at this again.

MarcS1975 commented 9 months ago

i dont really know Java well but isnt there a TimeZone identifier that you can use. You could probably read the timezone from the Joplin config file.

On Thu, 30 Nov 2023 at 19:16, Franco Speziali @.***> wrote:

Unfortunately this is a limitation with JavaScript's Date API - this is how it expects the date to be formatted. There should be a better way to handle this though, I admit. I also prefer dd-mm-yy. I will have to look at this again.

— Reply to this email directly, view it on GitHub https://github.com/WeMakeMachines/joplin-plugin-event-calendar/issues/3#issuecomment-1834402588, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMNNHGSC4TI2HN7BCMHN7GLYHDLSNAVCNFSM6AAAAABABJUED6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZUGQYDENJYHA . You are receiving this because you authored the thread.Message ID: @.*** com>

WeMakeMachines commented 9 months ago

It's not the timezone, but the date / time locale. Timezone won't help here since people can have different locale settings within the same timezone