ASK_COLOR = 34 # blue
NO_COLOR = 0
-HOST_TIMEZONE = time.timezone
-
PREFIX_RE = re.compile('^<(.*?)>\s*(.*)', re.S)
INTERACTIVE = True
# append normal msg to LOG
save_msg = msg.strip() if msg else None
if save_msg:
- global HOST_TIMEZONE
- timestr = time.strftime("[%m/%d %H:%M:%S] ",
- time.gmtime(time.time() - HOST_TIMEZONE))
+ timestr = time.strftime("[%m/%d %H:%M:%S] ", time.localtime())
LOG_CONTENT += timestr + save_msg + '\n'
if errormsg: