Hi there,
thank you very much for providing this awesome piece of software!
Unfortunately, there's a little bug where the date is shown incorrectly when selecting the German date format and when showing entries by year.
This is the correct date:
Friday, January 13th, 7:30 pm
This is the expected display in German formatting:
Freitag, 13. Januar 2023 19:30
This is the actual string displayed:
Freitag, %s. Januar 2023 19:30
I also seem to have found the root cause for this.
In the file libraries/jeventshtml.php, line 1027 reads as follows:
The line should be:
The %%s in the format string is changed to %d which is the current day of the month.
After changing this, the date is shown correctly.
Maybe, there's anyone else having the same problem...
Also, maybe this fix could be included in the official release so that this issue is not there anymore in the next releases.
Best regards and thank you very much again for Jevents!
Thomas
thank you very much for providing this awesome piece of software!
Unfortunately, there's a little bug where the date is shown incorrectly when selecting the German date format and when showing entries by year.
This is the correct date:
Friday, January 13th, 7:30 pm
This is the expected display in German formatting:
Freitag, 13. Januar 2023 19:30
This is the actual string displayed:
Freitag, %s. Januar 2023 19:30
I also seem to have found the root cause for this.
In the file libraries/jeventshtml.php, line 1027 reads as follows:
return sprintf(JEV_CommonFunctions::jev_strftime("%A, %%s. %B %Y", $datestp), intval(JEV_CommonFunctions::jev_strftime('%d', $datestp)));
The line should be:
return sprintf(JEV_CommonFunctions::jev_strftime("%A, %d. %B %Y", $datestp), intval(JEV_CommonFunctions::jev_strftime('%d', $datestp)));
The %%s in the format string is changed to %d which is the current day of the month.
After changing this, the date is shown correctly.
Maybe, there's anyone else having the same problem...
Also, maybe this fix could be included in the official release so that this issue is not there anymore in the next releases.
Best regards and thank you very much again for Jevents!
Thomas