On 2/8/07, Ask Bjørn Hansen <[EMAIL PROTECTED]> wrote:
>On 2/8/07, Michael Reece <[EMAIL PROTECTED]> wrote:
>> i see that i can define the column as
>>
>>    saved_on => { type => 'datetime', time_zone => 'America/New_York' }
>>
>> and get the right datetime value, but is there an easy way to
>> influence the timezone on all DateTime objects created by
>> Rose::DB::Object?
>
> [...] register_db takes a "server_time_zone" parameter - I think
> that's what you want.

Right.  The relevant docs:

http://search.cpan.org/dist/Rose-DB-Object/lib/Rose/DB/Object/MakeMethods/Date.pm#datetime

"The time zone of the DateTime object that results from a successful
parse is set to the value of the time_zone option, if defined.
Otherwise, it is set to the server_time_zone value of the object's db
attribute using DateTime's set_time_zone method."

-John

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Rose-db-object mailing list
Rose-db-object@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rose-db-object

Reply via email to