Got chat? If not, try
Help Center Live!
, the Live Chat leader!
Home
Help
Search
Login
Register
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search
Advanced search
8043
Posts in
1856
Topics- by
2099
Members
- Latest Member:
roi
Calendar Script Community
Customization
Hacks and Mods
(Moderators:
scott
,
DanO
,
Marty
)Time in search display
« previous
next »
Pages: [
1
]
Go Down
Author
Topic: Time in search display (Read 1141 times)
0 Members and 1 Guest are viewing this topic.
mdlipay
New Member
Karma: 0
Offline
Posts: 1
web designer
Time in search display
«
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
Posts: 230
Please don't PM me. Post in the open forum.
Re: Time in search display
«
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
Posts: 230
Please don't PM me. Post in the open forum.
Re: Upgrade!
«
Reply #2 on:
November 01, 2007, 07:56:49 PM »
** Using 3.1 **
I assume this means you're using CalendarScript 3.1?
If so
you should upgrade
as there are some
serious security flaws in pre-3.21 versions
!
Dan O.
Logged
Pages: [
1
]
Go Up
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> FAQS
=> Advertise on CalendarScript
-----------------------------
Setup and Installation
-----------------------------
=> Installation and Setup
=> Problems and Solutions
-----------------------------
Customization
-----------------------------
=> Customizing CalendarScript
=> Hacks and Mods
=> Plugins
-----------------------------
Making CalendarScript Better
-----------------------------
=> Suggestions and Ideas
=> Showcase
-----------------------------
Licensing
-----------------------------
=> Licensing
-----------------------------
Everything Else
-----------------------------
=> General Use