maxpozdeev / mytinytodo

Todo list script
156 stars 49 forks source link

Add/Modify date doesn't work on custom short date format #74

Closed stebulba closed 11 months ago

stebulba commented 11 months ago

All is on the title. My setting : image

maxpozdeev commented 11 months ago

I can not catch this. What version do you use?

stebulba commented 11 months ago

version 1.7.6 The issue append when the custom format is probably not reconize by date() or strtotime(). n/j/y when "y" is on only two number strtotime is confuse with the order of the number. The solution should be to convert yourself on the calendar the result with the custom date format.

maxpozdeev commented 11 months ago

Can you reproduce on the demo at https://mytinytodo.net/demo/ ? It has setting of "n/j/y" for Short date format.

BTW, n/j/y should not be a custom, it is the second item to select in the dropdown list in settings.

stebulba commented 11 months ago

In your demo, the custom for short date format doesn't save as custom when we submit the modification. Anyway I use on now on my localhost "j/n/Y" as custom and that work.

maxpozdeev commented 11 months ago

Well, I did not understand where is the error. Will close the issue until more details are provided.

Can't repro