Tuesday, 15 August 2023
  1 Replies
  803 Visits
1
Votes
Undo
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:

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
schachtnerth set the post as Normal priority — 1 year ago
schachtnerth set the type of the post as  Bug — 1 year ago
1 year ago
·
#231852
0
Votes
Undo
Thanks for the suggested fix - this is long standing code which is causing problems in PHP 8.2 and your solution is an easy workaround

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!

  • Page :
  • 1
There are no replies made for this post yet.

Members Area

Show your support

Unlike many Joomla calendars we do not charge to download JEvents - please show your support for this project by becoming a member of the JEvents Club Club members get access to early releases, exclusive member support forums, and Silver and Gold members can use many exciting JEvents addons

Your membership will ensure that JEvents continues to be the best events calendar for Joomla.