Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Evan Dorn's latest activity

Tuesday, July 06 2010
4729 ActiveSupport::TimeWithZone strftime formatting lacks unpadded types was updated in Ruby on Rails
  • Evan Dorn
    Evan Dorn commented at 2:32 AM

    Since it appears to be a platform-dependent Ruby issue, I reported this to the Ruby error tracker: http://redmine.ruby-lang.org/issues/show/3541

  • Evan Dorn
    • Importance changed from to Low
    by Evan Dorn at 2:16 AM

    It's not the version of Ruby that matters. It's the platform. Works on linux, doesn't work on Mac.

    On a mac, Snow Leopard installed:

    [18:12:52 ~]$ irb ruby-1.8....

Sunday, May 30 2010
4729 ActiveSupport::TimeWithZone strftime formatting lacks unpadded types was updated in Ruby on Rails
  • Evan Dorn
    Evan Dorn commented at 1:04 AM

    Attempt at better formatting:

    Loading development environment (Rails 2.3.8)

    >> DateTime.parse("June 5th").strftime("%m %d")

    => "06 05"

    >> DateTime.parse("June 5...

  • Evan Dorn
    Evan Dorn created the ticket at 1:00 AM

    Plain ruby DateTime#strftime supports non-zero-padded month and day codes %-m and %-d, making it possible to generate "March 5, 2010" instead of "March 05, 2010...