Here's a patch that gives the proper am/pm display for ruby1.8 if that's
what's running.
---
lib/sup/util.rb | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/sup/util.rb b/lib/sup/util.rb
index f99e1c1..1a2a447 100644
--- 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")
+ (RUBY_VERSION =~ /^1.8/) ? strftime("%l:%M%p").downcase :
strftime("%l:%M%P")
elsif is_the_day_before? from
- "Yest." + nearest_hour.strftime("%l%P")
+ "Yest." + ((RUBY_VERSION =~ /^1.8/) ?
nearest_hour.strftime("%l%p").downcase : nearest_hour.strftime("%l%P"))
else
strftime "%b %e"
end
--
1.6.5.7
_______________________________________________
Sup-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/sup-devel