Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong due date is displayed #3

Open
de-johannes opened this issue May 21, 2024 · 2 comments
Open

Wrong due date is displayed #3

de-johannes opened this issue May 21, 2024 · 2 comments

Comments

@de-johannes
Copy link

de-johannes commented May 21, 2024

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
Copy link

alphapetjg commented May 28, 2024

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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants