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
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
>>
>>
>>
>>
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
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
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
5 matches
Mail list logo