commit d01068fb697691781e46db371f1e85148ad98684
parent 456d372afbfb480f28061fea7fe70a2bf41dbca4
Author: Eric Sherman <hyperbolist@gmail.com>
Date: Sat, 2 Jan 2010 00:14:05 -0500
fixed am/pm display for ruby 1.8 darwin
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/sup/util.rb b/lib/sup/util.rb
@@ -486,9 +486,9 @@ class Time
strftime "%b %e"
else
if is_the_same_day? from
- strftime("%l:%M%P")
+ strftime("%l:%M%p").downcase # emulate %P (missing on ruby 1.8 darwin)
elsif is_the_day_before? from
- "Yest." + nearest_hour.strftime("%l%P")
+ "Yest." + nearest_hour.strftime("%l%p").downcase # emulate %P
else
strftime "%b %e"
end