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 know how to get the correct local time out of a MAKO report?

I look forward to hearing from you,
[email protected]
_______________________________________________
Mailing list: https://launchpad.net/~openerp-community
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-community
More help   : https://help.launchpad.net/ListHelp

Reply via email to