From f1527e89c1aa1bb864b03156ba374a56bc00e07c Mon Sep 17 00:00:00 2001 From: mattf Date: Wed, 2 Nov 2016 11:01:57 +0000 Subject: [PATCH] Patched sec_convert function to display hours in functions.php git-svn-id: svn://192.168.202.10@2609 3d104415-ff17-0410-8863-d5cf3c621b8a --- agc_2-X/trunk/www/vicidial/functions.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/agc_2-X/trunk/www/vicidial/functions.php b/agc_2-X/trunk/www/vicidial/functions.php index 08db732d..ae4af200 100644 --- a/agc_2-X/trunk/www/vicidial/functions.php +++ b/agc_2-X/trunk/www/vicidial/functions.php @@ -26,6 +26,7 @@ # 150514-1522 - Added lookup_gmt function, copied from agc/functions.php # 150516-1206 - Added missing TZCODE segment to gmt_lookup function # 160802-1149 - Added hex2rgb function +# 161102-0039 - Patched sec_convert function to display hours # ##### BEGIN validate user login credentials, check for failed lock out ##### @@ -145,7 +146,7 @@ function sec_convert($sec,$precision) if ($sec < 1) { - if ($precision == 'HF') + if ($precision == 'HF' || $precision == 'H') {return "0:00:00";} else { @@ -162,7 +163,7 @@ function sec_convert($sec,$precision) {$precision='H';} else { - if ( ($sec < 3600) and ($precision != 'S') ) {$precision='M';} + # if ( ($sec < 3600) and ($precision != 'S') ) {$precision='M';} } if ($precision == 'H')