Re: [RDBO] timezone for magical 'now' value in datetime columns

2007-02-09 Thread John Siracusa
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 >> in

Re: [RDBO] timezone for magical 'now' value in datetime columns

2007-02-08 Thread Ask Bjørn Hansen
On Feb 8, 2007, at 5:22 PM, Michael Reece wrote: > 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? I had the same problem yesterday (sorta).While on the subject I'd (generally) highly recommend u

[RDBO] timezone for magical 'now' value in datetime columns

2007-02-08 Thread Michael Reece
if i do something like $obj->my_date('now'); $obj->save; i get UTC times. 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 ob