From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.90.87.14 with SMTP id k14cs1308954agb; Thu, 31 Dec 2009 06:52:08 -0800 (PST) Received: by 10.224.116.137 with SMTP id m9mr9284179qaq.319.1262271127830; Thu, 31 Dec 2009 06:52:07 -0800 (PST) Return-Path: Received: from rubyforge.org (rubyforge.org [205.234.109.19]) by mx.google.com with ESMTP id 15si21830073qyk.57.2009.12.31.06.52.07; Thu, 31 Dec 2009 06:52:07 -0800 (PST) Received-SPF: pass (google.com: domain of sup-devel-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) client-ip=205.234.109.19; Authentication-Results: mx.google.com; spf=pass (google.com: domain of sup-devel-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) smtp.mail=sup-devel-bounces@rubyforge.org; dkim=neutral (body hash did not verify) header.i=@gmail.com Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id 1B6D218582C2; Thu, 31 Dec 2009 09:52:07 -0500 (EST) Received: from mail-qy0-f192.google.com (mail-qy0-f192.google.com [209.85.221.192]) by rubyforge.org (Postfix) with ESMTP id 01955185826F for ; Thu, 31 Dec 2009 09:48:28 -0500 (EST) Received: by qyk30 with SMTP id 30so5933942qyk.33 for ; Thu, 31 Dec 2009 06:48:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:content-type:subject:from:to :date:message-id:user-agent:content-transfer-encoding; bh=OqTjilOYnDmdYvaONVFLzl4cUxM8B0h4U7nbA8NM5Qc=; b=sfMLXzqC7RdnUED5LOo/LWeCr/aLzFo9P2EQ2CzSG6fgMzFjvfjRLNumvnDn2grlWR pVpZ69Pk1g7+LfwpBJqP5NQIIcvdVys4sYrhJ05FdGd2xk8yeqQIN3hkYqkAb1mVAyjJ StqhFs7+LP27zmeecCHULGn9XM16LKHsPhCYU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=content-type:subject:from:to:date:message-id:user-agent :content-transfer-encoding; b=VehTF3oy92YxgVyJOOrAcQmn9OYlI201S0sv110NZ0kIp657nYNU4YGD23ql7jPohR seA2VSeecxXjr8Bh2rG9ISq92kosygxpsZo5zIokR4zUrnrU5457Kw8Sw84Pifprv+dU c7lbg2SHu/WdGaiEQYfx3TxZjcYQY94wRxJVk= Received: by 10.224.3.74 with SMTP id 10mr9286835qam.302.1262270908651; Thu, 31 Dec 2009 06:48:28 -0800 (PST) Received: from localhost (c-76-98-110-216.hsd1.nj.comcast.net [76.98.110.216]) by mx.google.com with ESMTPS id 21sm13059373qyk.8.2009.12.31.06.48.26 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 31 Dec 2009 06:48:27 -0800 (PST) From: Eric Sherman To: sup-devel Date: Thu, 31 Dec 2009 09:48:25 -0500 Message-Id: <1262270484-sup-8396@changeling.local> User-Agent: Sup/git Subject: [sup-devel] [PATCH] fixed am/pm in thread-list-mode for ruby1.8 X-BeenThere: sup-devel@rubyforge.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: Sup developer discussion List-Id: Sup developer discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: sup-devel-bounces@rubyforge.org Errors-To: sup-devel-bounces@rubyforge.org 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 Sup-devel@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-devel