Event Calendar 2.12 Fix For AM/PM Calculation
Date: Wednesday, October 01 @ 16:04:40 CEST
Topic: Bug Fixes


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:

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

and modify it to read


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







This article comes from NukeCops
http://www.nukecops.com

The URL for this story is:
http://www.nukecops.com/modules.php?name=News&file=article&sid=759