jmiba / XWiki-Checkboxed-Task-Macro

GNU General Public License v3.0
8 stars 1 forks source link

Wrong due date is displayed #3

Open de-johannes opened 4 months ago

de-johannes commented 4 months ago

Thank you for the great macro!

After setting the deadline and saving, an incorrect date is displayed on the XWiki page. Could this be due to the fact that we use the syntax "dd. MMMM yyyy" syntax?

CheckTaskDueDate

alphapetjg commented 4 months ago

We noticed this too but our syntax is yyyy-MM-dd. We also got a message that the java.util.Date parameter is now deprecated. Not sure if that is related/causing the date discrepancy?

Screenshot 2024-05-28 at 11 08 38 AM

Thanks for a great macro - it's super useful :)

de-johannes commented 1 week ago

In "Macros.CheckboxedTask.CheckboxedTaskListener" -> Object-Editor -> Type XWiki.ComponentMethodClass -> onEvent -> Method body Code.

There are the defined date formats, which should work. yyyy-MM-dd is listed, so it should work with your XWiki.

I changed the date format in every wiki to dd.MM.yyyy an now it works.