Geoff Buesing
Account member
Geoff Buesing's latest activity
Tuesday, August 26 2008
-
Geoff Buesing commented at 5:28 PMGlad 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 commented at 2:06 PM -
Geoff Buesing commented at 2:04 PMAgreed, 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
-
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 commented at 7:45 PMOk, 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 commented at 5:52 PMAha 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 commented at 4:28 PMJust 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 commented at 2:45 PMFrom 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
-
- State changed from invalid to open
- Assigned user set to Geoff Buesing
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
-
Geoff Buesing commented at 3:17 PMIan, 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...