Felix Schäfer wrote:
> Am 11.07.2009 um 16:43 schrieb Colin Law:
> 
>> Interestingly, in irb:
>> irb(main):006:0> Time.now.strftime("%I:%M %p")  # upper case i
>> => "03:39 PM"
>> irb(main):007:0> Time.now.strftime("%l:%M %p") # lower case l
>> => " 3:39 PM"
> 
> Could it be that something on the way to the browser chokes on the
> leading whitespace? Maybe try the code in script/console, and continue
> adding stuff around your strftime(...) until you find the culprit.
> 
> Regards,
> 
> Felix

Felix if I test just using Time.now.strftime("%l:%M %p") I get
=> ""

-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to