# Datetime.now() in reports

**URL:** <https://discuss.tryton.org/t/datetime-now-in-reports/1985>\
**Category:** User\
**Created:** [November 21, 2019, 9:34am UTC](https://discuss.tryton.org/t/datetime-now-in-reports/1985 "2019-11-21T09:34:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![risto3](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/r/a87d85/32.png) [@risto3](https://discuss.tryton.org/u/risto3)\
**Post date:** [November 21, 2019, 9:34am UTC](https://discuss.tryton.org/t/datetime-now-in-reports/1985/1 "2019-11-21T09:34:36Z")

</div>

This is probably dumb, but using datetime.now() produces UTC time and not local time.  
What would be the relatorio incantation to print localtime?

---

<div class="post-metadata">

**Author:** ![edbo](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/e/f14d63/32.png) [@edbo](https://discuss.tryton.org/u/edbo)\
**Post date:** [November 21, 2019, 10:24am UTC](https://discuss.tryton.org/t/datetime-now-in-reports/1985/2 "2019-11-21T10:24:38Z")

</div>

There is an issue already for this [Add format\_datetime to Report (#7202) · Issues · Tryton / Tryton · GitLab](https://bugs.tryton.org/issue7202). But at the moment the only thing you can do is create a function yourself to get the local time.
