ivan-liadniou-epam / obsidian-day-planner-fork

This fork got merged into the original, so that's a good place to create issues: https://github.com/ivan-lednev/obsidian-day-planner
MIT License
58 stars 2 forks source link

[Feature Request] Configurable time format #1

Open benjamonnguyen opened 1 year ago

benjamonnguyen commented 1 year ago

Currently times must be provided as "HH:mm".

As suggested here, we can implement an option in the settings tab to configure the valid moment.js time format.

This would also be reflected on the Gantt chart.

ivan-lednev commented 1 year ago

Hello, @benjamonnguyen,

I think the code is in decent enough shape now. I created a timestamp parser that handles almost any time format I could think of. Take a look at the tests: https://github.com/ivan-lednev/obsidian-day-planner/blob/main/src/util/timestamp.test.ts

Not sure if this covers what you wanted to implement. You're welcome to further extend this functionality.

benjamonnguyen commented 1 year ago

@ivan-lednev I'll spend some time using the new feature. Thank for the speedy implementation!