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.

There was a problem

You must be a member of this account.

Geoff Buesing's latest activity

Tuesday, August 26 2008
900 Memcached uses local time instead of configured time zone. was updated in Ruby on Rails
  • Geoff Buesing
    Geoff Buesing commented at 5:28 PM

    Glad to hear this is solved in 1.9.

    If we used TimeWithZone objects to set created_at and updated_at timestamps (via a call to #in_time_zone), the only vulnera...

  • Geoff Buesing
    Geoff Buesing commented at 2:06 PM
  • Geoff Buesing
    Geoff Buesing commented at 2:04 PM

    Agreed, this issue is definitely due to the Ruby's Time marshaling ignoring the zone.

    I think my diagnosis above is correct -- in the example below, note how t...

Monday, August 25 2008
900 Memcached uses local time instead of configured time zone. was updated in Ruby on Rails
  • Geoff Buesing
    Geoff Buesing commented at 8:18 PM

    ...but of course that solution might break other apps that rely on the existing behavior, so maybe that's not such a good solution.

  • Geoff Buesing
    Geoff Buesing commented at 7:45 PM

    Ok, so I'm thinking the problem is this:

    In your example, when you read the object from the db and immediately store it in the cache, updated_at is still a str...

  • Geoff Buesing
    Geoff Buesing commented at 5:52 PM

    Aha ok. That rules out TimeWithZone as a player here.

    If you just write a plain Time.utc instance to the cache, and then retrieve it, what does it come back as...

  • Geoff Buesing
    Geoff Buesing commented at 4:28 PM

    Just to narrow things down -- if you comment out config.time_zone in environment.rb, and add

    config.active_record.default_timezone = :utc

    does the problem sti...

  • Geoff Buesing
    Geoff Buesing commented at 2:45 PM

    From your post on the Core list, it sounds like you're setting config.time_zone, is that correct? If so, you'll need the bugfix to TimeWithZone Marshaling in 2-...

Sunday, August 24 2008
346 skip_time_zone_conversion_for_attributes does not work was updated in Ruby on Rails
  • Geoff Buesing
    • State changed from invalid to open
    • Assigned user set to Geoff Buesing
    by Geoff Buesing at 5:00 PM

    Actually, this is indeed a bug -- we're using cattr_accessor to define skip_time_zone_conversion_for_attributes, which means that every class that subclasses Ac...

Thursday, August 21 2008
877 Time.to_s wonky was updated in Ruby on Rails
  • Geoff Buesing
    Geoff Buesing commented at 3:17 PM

    Ian, this is probably due to a plugin or something that's overriding the Time#to_s(:db) format, or destructively changing the format string in Time::DATE_FORMAT...