Members: 16,996
Threads: 38,846
Posts: 159,391
Online: 22

Newest Member: Kl_broka@rediffmail.com


Odoo.tv - Outdoor Television


Sedo - Domains kaufen und verkaufen das Projekt mambers.com steht zum Verkauf Besucherstatistiken von mambers.com etracker® Web-Controlling statt Logfile-Analyse
Old 29.05.2004, 00:37   #1 (permalink)
ken
Baby Mamber
 
ken's Avatar
 
Join Date: Apr 2004
Posts: 11
ken is on a distinguished road
Default Setting time to 12 hour and not 24 hour

How do I switch the time in the events component to reflect a 12 hour format and not a 24 hour format? It seems to be 12 hour on other components/modules but not in the events component.

I've looked in the PHP manual for the proper string but don't know what to change within the mambo file(s).

Thanks!
__________________
ken hensley
www.kenhensley.com
ken is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Old 30.05.2004, 16:51   #2 (permalink)
MLr
Junior Mamber
 
Join Date: May 2004
Posts: 40
MLr is on a distinguished road
Default Re: Setting time to 12 hour and not 24 hour

What about setting time to "US" in the Events config?
MLr is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 30.05.2004, 21:19   #3 (permalink)
ken
Baby Mamber
 
ken's Avatar
 
Join Date: Apr 2004
Posts: 11
ken is on a distinguished road
Default Re: Setting time to 12 hour and not 24 hour

It's already set on "US" in the config section of Events.
__________________
ken hensley
www.kenhensley.com
ken is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 28.08.2004, 09:05   #4 (permalink)
Baby Mamber
 
Join Date: May 2004
Posts: 4
benrudolph is on a distinguished road
Default Re: Setting time to 12 hour and not 24 hour

I have come up with a hack to display the hours in a 12 hr format.

You will need to open the events.php file and look for this line of code (around line 882):

PHP Code:
if ($start_hours.$start_minutes <> $chhours) {  
            echo 
"<tr><td align='center' valign='top' width='50' class='ev_td_left'>".$start_hours." : ".$start_minutes."</td>\n";
            echo 
"<td class='ev_td_right'><ul class='ev_ul'>\n; 
and replace with this:

PHP Code:
if ($start_hours==1) { 
            echo 
"<tr><td align='center' valign='middle' width='60' class='ev_td_left'>1 : ".$start_minutes." am</td>\n";
            echo 
"<td class='ev_td_right'><ul class='ev_ul'>\n"
        } else if (
$start_hours==2) {  
            echo 
"<tr><td align='center' valign='middle' width='60' class='ev_td_left'>2 : ".$start_minutes." am</td>\n";
            echo 
"<td class='ev_td_right'><ul class='ev_ul'>\n"
        } 
and continuing on until you get to 24. If you noticed I removed the $start_hours variable and hard coded the real time in 12 hr format and added the am - pm indicator at the end. Hopefully this is a good enough hack until a real fix is implemented.
benrudolph is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 23.04.2007, 12:49   #5 (permalink)
Baby Mamber
 
Join Date: Sep 2004
Posts: 9
maanmadrasto is on a distinguished road
Default Re: Setting time to 12 hour and not 24 hour

Hi! I know, this was an issue that was brought up 3 years ago and I understand that it was a long time ago! But honestly, it is only now that I encountered this problem. May I know how you solved this problem of yours? Because unfortunately, I couldn't find the codes written above anywhere in my events.php file
maanmadrasto is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +2. The time now is 05:29.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
A vBSkinworks Design
© Copyright 2004-2008 by Arthur Konze Webdesign.