Re: [Openerp-community] time zone adjustment in MAKO files?

2013-05-10 Thread Dale E. Moore
Does anyone know how to calculate local time in a mako report? This from dateutil import tz from_zone = tz.tzutc() to_zone = tz.tzlocal() arrive = arrive.replace(tzinfo=from_zone) arrive_central = arrive.astimezone(to_zone) is not working for me. On Fri, May 10, 2013 at 8:30 AM, Dale E. Moore

Re: [Openerp-community] time zone adjustment in MAKO files?

2013-05-10 Thread Dale E. Moore
Thanks for the feedback Cristian Salamea! The user preferences are America/Chicago but what's being displayed/printed is UTC. On Fri, May 10, 2013 at 8:05 AM, Ovnicraft wrote: > > > > On Fri, May 10, 2013 at 7:32 AM, Dale E. Moore wrote: > >> I've used >> >> from dateutil import tz >> >> >> >>

[Openerp-community] OpenERP in Tokyo

2013-05-10 Thread Antony Lesuisse
I'm currently in tokyo and i was wondering if there are active OpenERP community members here to organize a meetup. Antony Lesuisse ___ Mailing list: https://launchpad.net/~openerp-community Post to : openerp-community@lists.launchpad.net Unsubscr

Re: [Openerp-community] time zone adjustment in MAKO files?

2013-05-10 Thread Ovnicraft
On Fri, May 10, 2013 at 7:32 AM, Dale E. Moore wrote: > I've used > > from dateutil import tz > > > from_zone = tz.tzutc() > > > to_zone = tz.tzlocal() > > > arrive = arrive.replace(tzinfo=from_zone) > > > arrive_central = arrive.astimezone(to_zone) > > > in hr_timesheet_invoice_create.py to outp

[Openerp-community] time zone adjustment in MAKO files?

2013-05-10 Thread Dale E. Moore
I've used from dateutil import tz from_zone = tz.tzutc() to_zone = tz.tzlocal() arrive = arrive.replace(tzinfo=from_zone) arrive_central = arrive.astimezone(to_zone) in hr_timesheet_invoice_create.py to output the correct local time but that isn't working for me in some MAKO reports. Do you kno