Welcome, Guest
Username: Password: Remember me

TOPIC:

Change Date Format On Details Page 7 years 7 months ago #16607

  • Hoffi
  • Hoffi's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 2279
  • Thank you received: 449
Hi,

can't try yet but looked into code.
As Bluefox stated for the event list in backend "Date Format" (non-short) is used. The date in your first screenshot match the format shown in your settings screenshot up to the comma.
Could you change the format to a completely different one (e.g. "d.m.y") just to see what happens?
Today evening I can make experiments on a "living" site.
Pessimists are optimists with experience!

Please Log in or Create an account to join the conversation.

Change Date Format On Details Page 7 years 7 months ago #16609

today evening I can make experiments on a "living" site.


ah that would be nice :)
(won't test it out myself then)
(won't respond to PM)
==================================================================
running: pre-alpha JEM 4.x (custom version) + Joomla 4.0.0-beta7 + PHP 7.3

Please Log in or Create an account to join the conversation.

Last edit: by Bluefox.

Change Date Format On Details Page 7 years 7 months ago #16621

  • Hoffi
  • Hoffi's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 2279
  • Thank you received: 449
That's crazy! :silly:

You can use "M j Y", "M j; Y", "M j, y", "M j, o" (which gives problem on last/first week of year) - but NOT "M j, Y".
For me there is no reason - but it doesn't work. Don't ask me why, it's somewhere inside JDate or PHP itself.
I will take a deeper look into JDate, maybe it helps to understand this bug. In the meantime - if you really want "M j, Y" you could use "M j&\sb\q\u\o; Y" instead where ‚ looks nearly like a comma. B)
Pessimists are optimists with experience!

Please Log in or Create an account to join the conversation.

Last edit: by Hoffi.

Change Date Format On Details Page 7 years 7 months ago #16622

  • Hoffi
  • Hoffi's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 2279
  • Thank you received: 449
Ok, I debugged the code and must correct me. The problem isn't caused by JDate but by JText::_().
This function has a special handling of strings with comma where the part behind doesn't contain at least one lowercase letter. :ohmy:

The only solution we have is to remove this function in formatdate() - which will be fixed in the next release.
If you need it earlier you find it in components/com_jem/classes/output.class.php. Change line 791from
$format = JText::_($settings->formatdate);
to
$format = $settings->formatdate;
Pessimists are optimists with experience!

Please Log in or Create an account to join the conversation.

Change Date Format On Details Page 7 years 7 months ago #16623

  • MyWorld
  • MyWorld's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 73
  • Thank you received: 3
Yeah!! The year is showing in the backend now.

Sorry if I missed this, but how do I get the long date on the event details page. It is showing like this:
Nov 12, 2015 - Nov 15, 2015

I would like it like this:
November 12, 2015 - November 15, 2015

Thanks!

Please Log in or Create an account to join the conversation.

Change Date Format On Details Page 7 years 7 months ago #16624

thx Hoffi,

ah that clarify's things.
did already change that line in JEM3 so that was why i didn't see the problem but good to know what was causing it.
(won't respond to PM)
==================================================================
running: pre-alpha JEM 4.x (custom version) + Joomla 4.0.0-beta7 + PHP 7.3

Please Log in or Create an account to join the conversation.

Last edit: by Bluefox.
Time to create page: 0.321 seconds

Donate

If you find JEM useful and if you use it on your site, please consider a donation to the project.

Private Messages

You are not logged in.

Follow us......