• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Changing time format from 24 hour into 12 hour?

Changing time format from 24 hour into 12 hour? 14 years 9 months ago #8051

Can anyone tell me how to do this, or at least direct me to the area of code that I need to change? Thanks!
The administrator has disabled public write access.

Re:Changing time format from 24 hour into 12 hour? 14 years 9 months ago #8053

Disregard this, I found and changed it. In case anyone else wants to do this, I changed lines 173-5 of rsevents.php to
//change the event date to user's date format
			$event->EventStartDate = date("g:i a",$event->EventStartDate);
			$event->EventEndDate = date("g:i a",$event->EventEndDate);
The administrator has disabled public write access.

Re:Changing time format from 24 hour into 12 hour? 14 years 8 months ago #8325

  • monashgk
  • monashgk's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
There is no need to edit the hard code to get 12hr time...Simply use 'Date Format' under Settings>General in the backend. By default it is:

d M y H:i

To make it 12hr you can change it to:

d M y h:iA

But you can use any combination of the following common codes:

d = day in #
D = day in text (first three letters)
l = day (full)
S = st, nd, rd, th

m = month in #
M = month (first three letters)
F = Month (full)

y = year (2-digit)
Y = year (4-digit)

H = 24hr
h = 12hr
i = minutes
A = AM/PM

T = Time zone (ie: EST, C, etc)

There are other funcctions that can be called but these are most common.
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!