Files
tryton/trytond/__init__.py
T

19 lines
551 B
Python
Raw Normal View History

2014-12-02 12:54:01 +01:00
# This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
2013-11-15 02:26:58 +01:00
import os
import time
2016-03-15 16:57:26 +01:00
import logging
2015-03-18 23:19:58 +01:00
from email import charset
2013-11-15 02:26:58 +01:00
2015-11-02 14:56:00 +01:00
__version__ = "3.9.0"
2016-03-15 16:57:26 +01:00
logger = logging.getLogger(__name__)
2013-11-15 02:26:58 +01:00
os.environ['TZ'] = 'UTC'
if hasattr(time, 'tzset'):
time.tzset()
2016-03-15 16:57:26 +01:00
if time.tzname[0] != 'UTC':
logger.error('Timezone must be set to UTC instead of %s', time.tzname[0])
# set email encoding for utf-8 to 'quoted-printable'
2015-03-18 23:19:58 +01:00
charset.add_charset('utf-8', charset.QP, charset.QP)