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.

Geoff Buesing's latest activity

Tuesday, May 26 2009
2019 Format two-digit years correctly was updated in Ruby on Rails
  • Geoff Buesing
    • Milestone cleared.
    • State changed from invalid to open
    by Geoff Buesing at 5:30 AM

    @Joel Hoffman -- you're right, my previous diagnosis of what was causing the problem was incorrect: a string assigned to a Date column is coerced to a Date obje...

Sunday, May 10 2009
2613 Fix spelling of Kyiv timezone was updated in Ruby on Rails
Saturday, May 09 2009
2613 Fix spelling of Kyiv timezone was updated in Ruby on Rails
Wednesday, April 22 2009
2527 Time columns are not zone aware was updated in Ruby on Rails
  • Geoff Buesing
    • State changed from new to wontfix
    by Geoff Buesing at 3:38 PM

    I assume you're talking about a sql :time (i.e., time-only) column, which AR returns as an instance of Time, with year, month and day set to Jan 1, 2000.

    Rails ...

Tuesday, April 14 2009
2479 Inconsistant time zone handling was updated in Ruby on Rails
  • Geoff Buesing
    Geoff Buesing commented at 12:32 AM

    That would work. Though you should use the non-destructive #getutc instead of #utc, otherwise you might get some unexpected behavior.

Sunday, April 12 2009
2465 [Rails 2.3.1] Time zone information is not loaded from fixtures was updated in Ruby on Rails
  • Geoff Buesing
    • State changed from new to invalid
    by Geoff Buesing at 2:30 PM
  • Geoff Buesing
    Geoff Buesing commented at 2:29 PM

    Aha ok -- looks like you're not calling #to_s(:db) -- 'Sun Apr 12 11:40:05 UTC 2009' is the plain Time#to_s output.

    You need to explicitly call #to_s(:db) on ti...

Saturday, April 11 2009
2470 Cannot make zone.parse create given time (DST) was updated in Ruby on Rails
  • Geoff Buesing
    • State changed from new to wontfix
    by Geoff Buesing at 3:19 PM

    If you include the UTC offset and leave out the MSK/MDK from the string, it works:

    
    >> zone = ActiveSupport::TimeZone['Moscow']
    => #<ActiveSupport::TimeZone:...
2472 6.days.from_now.to_s(:db) forces utc was updated in Ruby on Rails
  • Geoff Buesing
    Geoff Buesing commented at 2:45 PM

    In your environment.rb, are you setting config.time_zone? This setting currently only works when your database stores UTC times -- if you want to store in local...

2479 Inconsistant time zone handling was updated in Ruby on Rails
  • Geoff Buesing
    • Milestone cleared.
    • Assigned user set to Geoff Buesing
    • State changed from new to open
    by Geoff Buesing at 2:27 PM

    I agree this is inconsistent -- TimeWithZone and Time.utc instances report themselves to the database as UTC, whereas Time.local instances report themselves in ...