Files
tryton/trytond/__init__.py
T
Daniel Möller d9b37b2547 Change logging into warnings in __init__.py
The logging is not yet configured when __init__.py is run.

issue5455
review28921002
2017-02-08 11:10:52 +01:00

19 lines
516 B
Python

# This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
import os
import time
import warnings
from email import charset
__version__ = "4.3.0"
os.environ['TZ'] = 'UTC'
if hasattr(time, 'tzset'):
time.tzset()
if time.tzname[0] != 'UTC':
warnings.warn('Timezone must be set to UTC instead of %s', time.tzname[0])
# set email encoding for utf-8 to 'quoted-printable'
charset.add_charset('utf-8', charset.QP, charset.QP)