Patched sec_convert function to display hours in functions.php

git-svn-id: svn://192.168.202.10@2609 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
mattf
2016-11-02 11:01:57 +00:00
parent 0a38b95495
commit f1527e89c1
+3 -2
View File
@@ -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')