* [sup-devel] [PATCH] fixed am/pm display for ruby 1.8 darwin (v2)
@ 2010-01-02 5:14 Eric Sherman
2010-01-03 15:15 ` William Morgan
0 siblings, 1 reply; 2+ messages in thread
From: Eric Sherman @ 2010-01-02 5:14 UTC (permalink / raw)
To: sup-devel
---
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 c27e527..206c18a 100644
--- a/lib/sup/util.rb
+++ b/lib/sup/util.rb
@@ -513,9 +513,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
--
1.6.5.7
_______________________________________________
Sup-devel mailing list
Sup-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-01-03 15:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-02 5:14 [sup-devel] [PATCH] fixed am/pm display for ruby 1.8 darwin (v2) Eric Sherman
2010-01-03 15:15 ` William Morgan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox