Welcome, Guest
Username: Password: Remember me

TOPIC:

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

ah nice, good to know what the cause was..

(am still thinking of making a cleaner as it can be very usefull but will see)
Am going to dive into the date problem later but will reply this week.
(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.

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

  • MyWorld
  • MyWorld's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 73
  • Thank you received: 3
Thank you. You guys rock!!
The following user(s) said Thank You: jojo12

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

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

March 5, 2015 | 7:00 PM - 9:00 PM
** The date is fine but the time is showing like this: 17:00 PM - 19:00 PM. What is the correct format please?

I was hoping to set the date like this on the details page:
Thursday March 5, 2015 | 7:00 PM - 9:00 PM

** But it is showing like this. Note the year is missing:
Thursday March 5, 17:00 PM - 19:00 PM


What is the correct format please?

in that case you have to look for strftime commands and it will be like
%I.%M %p
for fromattime.

But it is showing like this. Note the year is missing:

the year should be showing now on the details page but at the moment it will have trouble with the time, this as not all code of strftime is mapped to the date function within our function. In the upcoming those values are added so it should be fine.

//
in the image you'll see an array with retrieved parts of date/time, those parts can be used to style the page as wanted.
(won't respond to PM)
==================================================================
running: pre-alpha JEM 4.x (custom version) + Joomla 4.0.0-beta7 + PHP 7.3
Attachments:

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 #16947

  • Hoffi
  • Hoffi's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 2279
  • Thank you received: 449
@Bluefox: You should add spaces around the hyphen between the two time values. ;)
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 #16953

  • MyWorld
  • MyWorld's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 73
  • Thank you received: 3
So with the 3.0.6 version the date seems to be working better. On the listings page it's like this, which is ok:
** March 5, 2015, 07:00 PM - 09:00 PM

On the details page, this is how it's showing up:
** Thursday March 5, 2015 %0:00 PM-%0:00 PM

See attached for backend settings. Thanks!
Attachments:

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

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

@Myworld

it's "correct" that the time has some issues but in the next JEM3 release (end this month) it will be fine.

meanwhile i can post the needed changes. will do that when I'm behind my own pc.
(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.

Time to create page: 0.682 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......