Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Search

 
Advanced search

8043 Posts in 1856 Topics- by 2099 Members - Latest Member: roi
Pages: [1]   Go Down
Print
Author Topic: Time in search display  (Read 1141 times)
0 Members and 1 Guest are viewing this topic.
mdlipay
New Member
*

Karma: 0
Offline Offline

Posts: 1

web designer


WWW
« on: November 01, 2007, 05:19:13 PM »

I want to show the time in the grid for the search results (see: hxxp: www. alleghenytrails. org/cgi-bin/calendar.  cgi?view=Search&command=search&duration=365&calendar=ATHC )

I have the time showing, but it's in 24hr format, with no colons separating the hours and minutes.     I looked in the documentation, but can't see anything that references time in 12hr format, or how to add the colon.     (Using 3.    1)
« Last Edit: November 01, 2007, 05:36:26 PM by mdlipay » Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

Please don't PM me. Post in the open forum.


WWW
« Reply #1 on: November 01, 2007, 07:53:42 PM »

There is no simple way I know of to reformat the time available in the search results. You can see how the time formatting is done in the calendar.pl file by searching for:

($hh,$mm) = ($event->{'schedule'}->{'start_time'} =~ /^(\d\d)(\d\d)/);

Maybe that will give you an idea how it might be able to be done?

Or you could try:

<%=Date::formatTime(Enter_24HR_Time_Here,$Config->{'time_format'})%>

...although it is untested by myself.

Dan O.
« Last Edit: November 01, 2007, 08:16:08 PM by DanO » Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

Please don't PM me. Post in the open forum.


WWW
« Reply #2 on: November 01, 2007, 07:56:49 PM »

** Using 3.1 **

I assume this means you're using CalendarScript 3.1?  Shocked

If so you should upgrade as there are some serious security flaws in pre-3.21 versions!

Dan O.
Logged
Pages: [1]   Go Up
Print
Jump to: