update function formattime to show 12 as pm

This commit is contained in:
bettina 2001-03-22 17:29:37 +00:00
parent 35a2d6bc9a
commit 7716dc48d4

View File

@ -969,7 +969,7 @@
$h12 = $hour;
if ($phpgw_info['user']['preferences']['common']['timeformat'] == '12') {
if ($hour > 12)
if ($hour >= 12)
$ampm = ' pm';
else
$ampm = ' am';