kookma / TW-Shiraz

Shiraz is a small Tiddlywiki 5 plugin contains macros, stylesheets, templates, snippets, images, static tables, dynamic tables and acts as a starter kit.
https://kookma.github.io/TW-Shiraz/
78 stars 8 forks source link

DatePicker, Dates and Timezones. #26

Closed ssoriche closed 1 year ago

ssoriche commented 2 years ago

I'm having an issue with using the Task Manager example, with due-dates and the dates provided by the date picker, and likely time representation in TiddlyWiki itself.

To start with, I have had issues in the past with using dates in TiddlyWiki without a timestamp. There are times of the day where the dates are off by a day. The solution to this was to always include the timestamp 12:00:00 in any date storage.

Using the Task Manager example, I created a new task with a due date for today (2022-02-01). TiddlyWiki is now showing it as 2022-01-31 and my filter based on date doesn't show it at all. This includes in the date picker as well as the due-date list in the dynamic table.

If I set the due date to tomorrow (2022-02-02), the dynamic table shows the due date as today.

I think the resolution much like my other date issues in TiddlyWiki is that the timestamp for 12:00:00 is required. I don't know however how to make the date picker understand that the timestamp is there, and to supply it when setting the date.

ssoriche commented 2 years ago

As an example, this is what I see when I activate edit in the dynamic table macro call.

IMG_0186

And this is what I see after I press save. IMG_0187

kookma commented 2 years ago

Actually Tiddlywiki does not support date picker! What I did here simple use $edit-text widget with type=date! There are some ongoing works lets use of date picker, by that Shiraz has to live with current situation!

You may like to give a try https://github.com/NicolasPetton/Projectify

kookma commented 1 year ago

See kookma pikaday!