Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Bug Fixes
Author Message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 17077

PostPosted: Tue Sep 30, 2003 6:43 am Reply with quote

For those of you who use Event Calendar 2.12 (and possibly prior versions), Any time the hours before 10:00 AM are printed/displayed, they are missing the AM notation. Well, here is the fix!

Locate the getTime() function in functions.php. Then find this code:
Code:
if ($time_Array[0] < 10) {

$hour = substr($time_Array[0],1,1);
} else {

and modify it to read
Code:
if ($time_Array[0] < 10) {

$hour = substr($time_Array[0],1,1);
$ampm = "AM";
} else {
 
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Bug Fixes

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©