Odoo Timezone Issue for PDF Qweb Report

PDF Qweb Report Timezone Issue

Mustufa Rangwala

Issue:

Problem on datetime filed on qweb report, showing not correct timezone.


Solution:

Use below method in Odoo QWeb: 

 <span t-esc="context_timestamp(doc.validity_date).strftime('%Y-%m-%d')"/> 

Above will give exact time as shown in form view with datetime and same show to Qweb PDF report..