projects
/
clearscm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f20aa5e
)
Fixed FormatTime to properly fill in leading zeros when hours are less
author
Andrew DeFaria
<Andrew@DeFaria.com>
Mon, 13 Jun 2016 19:15:42 +0000
(12:15 -0700)
committer
Andrew DeFaria
<Andrew@DeFaria.com>
Mon, 13 Jun 2016 19:15:42 +0000
(12:15 -0700)
than 12
lib/DateUtils.pm
patch
|
blob
|
history
diff --git
a/lib/DateUtils.pm
b/lib/DateUtils.pm
index
ef11a89
..
f106394
100644
(file)
--- a/
lib/DateUtils.pm
+++ b/
lib/DateUtils.pm
@@
-711,6
+711,8
@@
Returns:
my $AmPm = $hours > 12 ? "Pm" : "Am";
$hours = $hours - 12 if $hours > 12;
+
+ $hours = "0$hours" if length $hours == 1;
return "$hours:$minutes $AmPm";
} # FormatTime