# Config PYTZ in tryton 5.2

**URL:** <https://discuss.tryton.org/t/config-pytz-in-tryton-5-2/1865>\
**Category:** Developer\
**Created:** [October 21, 2019, 4:49pm UTC](https://discuss.tryton.org/t/config-pytz-in-tryton-5-2/1865 "2019-10-21T16:49:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![iehoshia](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/iehoshia/32/243_2.png) [@iehoshia](https://discuss.tryton.org/u/iehoshia)\
**Post date:** [October 21, 2019, 4:49pm UTC](https://discuss.tryton.org/t/config-pytz-in-tryton-5-2/1865/1 "2019-10-21T16:49:07Z")

</div>

Hi,

I’m using tryton 5.2 with python 3.7 under a nginx and uwsgi. I have configured PYTZ in company info and when I print a report, the timezone is different from the configured company.

In the report I used datetime.datetime.now().strftime(‘%H:%M:%S’) to display the now datetime but it is different from the server and different from the PYTZ config. Do I need some special config to display the timezone correctly?

Thanks in advance

---

<div class="post-metadata">

**Author:** ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)\
**Post date:** [October 21, 2019, 5:50pm UTC](https://discuss.tryton.org/t/config-pytz-in-tryton-5-2/1865/2 "2019-10-21T17:50:10Z")

</div>

Tryton always run in UTC timezone. If you want to have the current date (following the company timezone), you must use `ir.date` methods.

---

<div class="post-metadata">

**Author:** ![system](https://discuss-cdn.tryton.org/uploads/default/original/1X/c6f8ec0a40525cdcd50058c734283450a4b3d38b.png) [@system](https://discuss.tryton.org/u/system)\
**Post date:** [November 20, 2019, 5:50pm UTC](https://discuss.tryton.org/t/config-pytz-in-tryton-5-2/1865/3 "2019-11-20T17:50:12Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
