search for: some_date_time_object

Displaying 1 result from an estimated 1 matches for "some_date_time_object".

2007 Apr 03
1
Some timezone trouble involving tzinfo and postgresql
...een nothing but problems, and treating it as a string has been the only useful means of doing this. Here''s what I mean: We want to be able to access the user''s timezone attribute as a TZInfo::Timezone object instance so that we can say things like: @current_user.tz.utc_to_local(some_date_time_object) But whenever I used the standard aggregation shown in examples on this topic, the drop down time_zone_select for TZInfo doesn''t recognize the user''s previous selection! So I got around that like thus: i. created a string field on the user model called time_zone ii. added an a...