Created attachment 126521 [details]
Date change image
When editing news, the publication (and expiration, if filled in) date inputs fields are automatically changed to a date in August 2026.
Even when setting up an article to be published later than that, it will still reverts to 2026 when opening up the edit page.
The date can be then edited and changed with no issues, but if someone just wanted to correct a typo in the article and didn't pay attention to the date, it's a very easy mistake to make.
Steps to reproduce :
1/ In Tools > News, create a news article with any kind of content
2/ Save it : it should show the publication date you specified (or the current date if you left it blank)
3/ Try to edit it : the publishing date input should automatically be set to a random date in August 2026. If you also specified an expiration date, it seems to also be set to that same random date.
I cannot recreate this situation on the 21.05 db I'm using. I tried recreating it with Display Location: All, Librarian Interface, and OPAC news (en). I also tested selecting all library branches and a specific branch. I initially did not set an expiration date. When I did set an expiration date, the date I set remained. I also tested editing in the text box versus using source code. Are there further constraints I should use to replicate?
Noting that I also just tested to see if I could recreate this issue with system preference NewsToolEditor set to "a text editor (CodeMirror)" instead of WYSIWYG. Koha still retained the set dates.
It seems to be linked to the dateformat preferences. That bug does not appear when using the iso format (yyyy-mm-dd). Other format will still glitch but change the 'wrong' date (for instance, dd/mm/yyyy sets my edited dates to January 2021)
Is your branch up-to-date?
Looks like a duplicate of bug 29254. Please reopen if the problem persists.
*** This bug has been marked as a duplicate of bug 29254 ***