When I create a new leave request, the related server action create an email with date and time like this:
from '[[object.date_from]]'
to: '[[object.date_to]]'
The time is always wrong (-1 hour). All users are within time zone GTM+1.
How can I send email with propper time (GTM+1)?
Hi Davide, Did you find a solution for this? So far we are using pytz.timezone.localize to convert from UTC to user's timezone before generating the email, and append the adjusted datetime to the context...
I found others are using fields.datetime.context_timestamp to fix this... Just did a couple tests and it works fine...