On 1/19/2010 7:23 PM, Michael Koziarski wrote:
>> Assuming this doesn't take much code, and doesn't negatively impact
>> performance, I'm +1 on the idea.
>>     
> Seems reasonable to me too.  Please do try this out.
>   
I uploaded a patch against master with tests.

https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/3777-patch-postgresql-timestamp-with-zone-type-support

Jack
>   
>> On Mon, Jan 18, 2010 at 6:18 PM, Jack Christensen <[email protected]>
>> wrote:
>>     
>>> The current Rails practice with PostgreSQL is to use timestamp without
>>> zone and use ActiveRecord's time zone handling. This works fine for
>>> Rails but makes it slightly inconvenient for ad hoc, local time queries
>>> outside of Rails. I believe there is a way to get the best of both
>>> worlds. If when creating the connection, ActiveRecord set the connection
>>> time zone to UTC then Rails could handle time zones its way and other
>>> clients could use PostgreSQL's time zone handling.
>>>
>>> Is there any interest in a patch to this effect?
>>>
>>>
>>> Jack
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "Ruby on Rails: Core" group.
>>> To post to this group, send email to [email protected].
>>> To unsubscribe from this group, send email to
>>> [email protected].
>>> For more options, visit this group at
>>> http://groups.google.com/group/rubyonrails-core?hl=en.
>>>
>>>
>>>
>>>       
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Ruby on Rails: Core" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected].
>> For more options, visit this group at
>> http://groups.google.com/group/rubyonrails-core?hl=en.
>>
>>
>>     
>
>
>   

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en.

Reply via email to