GCalendar shows 24-hour time instead of 12-hour

2,183 views
Skip to first unread message

Susan Briere

unread,
Sep 23, 2010, 8:49:52 AM9/23/10
to joomlaug
Greetings,

I have a few elementary school sites with G4J Google calendar extension installed. When I view the Google calendar embedded in the Joomla site the time stamps for events display in 24-hour format, so 6:00 pm displays as 18:00. If I go directly to the Google calendar the time displays correctly. (I realize that the 24-hour format could be used as a 'teachable moment' but adults are complaining about having to convert on the fly...)

The calendar Time Zone settings are set: Country: United States, Time zone: (GMT -05:00) Eastern Time.

I updated the GCalendar extension to the latest version, 2.2.5, which released 9/18/10, but the time display is still in 24-hour format. I assumed it was a Joomla issue since it appears correctly otherwise. Has anyone run into this issue before?

Example site: Whiting School

Thank you,
Susan Briere

Justin H

unread,
Sep 23, 2010, 5:59:23 PM9/23/10
to Joomla! User Group New England
Hello Susan,

I am also running into the same issue when displaying a calendar in
Agenda View and I believe it stems from the code used in component. I
have already fixed a few display issues in the code used by the
developer... not the best option I know, but it needed to be done.

I still have to investigate the 24-hour display and if/when I figure
it out, I'll let you know.

- Justin

John Orzell

unread,
Sep 23, 2010, 6:38:50 PM9/23/10
to joom...@googlegroups.com
I had the same issue, here's what I did. Menus, main menu, select
GCalendar, Basic parameters. Change the "Time format month", "Time
format week", "Time format day" and "Axis format" to h:mm{ - h:mm}.

That should change some of the time formats for you.

Justin H

unread,
Sep 23, 2010, 10:06:36 PM9/23/10
to Joomla! User Group New England
@John - what version of GCalendar are you using? I'm not seeing those
parameters available in version 2.2.2


When I use the mod_gcalendar_upcoming there is a parameter in there
for time format. I enter in %l:%M%p and that displays 2:00pm just
fine. Yet when I use the same code in the component parameters, it
still displays as 14:00. That is why I need to investigate the
component's coding... I'm thinking there is some hard-coded reference
to the 24-hour time format in there somewhere.

Justin H

unread,
Sep 23, 2010, 10:27:00 PM9/23/10
to Joomla! User Group New England
Hello Susan - I was able to successfully get one of my calendars
(Agenda View) to display in the proper 12-hour (with am or pm) format.

In the com_gcalendar parameters (Components > GCalendar > Parameters)
I entered %l:%M%p in the Time Format field. Then in the parameters of
the menu item under the Parameters (Component) section, I entered %l:%M
%p again.

This seems to work well on this particular calendar. It is however
failing on a different calendar of mine on a different site, but I
will have to look more closely at the configuration of that one.

Figured I would share what worked.

John Orzell

unread,
Sep 24, 2010, 1:04:04 PM9/24/10
to joom...@googlegroups.com
I'm using 2.2.5. Don't forget to change the Component parameters on
the menu item page.
Reply all
Reply to author
Forward
0 new messages