Event Calendar 2.12 Fix For AM/PM Calculation

Posted on Monday, September 29, 2003 @ 20:07:49 CDT in Bugs - Fixed
by Raven

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] < 10) {
$hour = substr($time_Array[0],1,1);
} else {


and modify it to read


if ($time_Array[0] < 10) {
$hour = substr($time_Array[0],1,1);
$ampm = "AM";
} else {
 
 
click Related        click Share
 
 
Associated Topics

Add-Ons
 
News ©

Site Info

Last SeenLast Seen
  • neralex
  • fistfight
Server TrafficServer Traffic
  • Total: 511,640,910
  • Today: 118,038
Server InfoServer Info
  • Apr 15, 2025
  • 05:21 pm CDT