From debb07a887c2d3d8822a30b05ba652cc12df0f7f Mon Sep 17 00:00:00 2001 From: Alan Hamlett Date: Tue, 3 Dec 2013 02:39:57 +0100 Subject: [PATCH] use non-localized datetime in log --- plugin/packages/wakatime/wakatime/log.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/packages/wakatime/wakatime/log.py b/plugin/packages/wakatime/wakatime/log.py index ee810d7..6d7acc2 100644 --- a/plugin/packages/wakatime/wakatime/log.py +++ b/plugin/packages/wakatime/wakatime/log.py @@ -76,7 +76,7 @@ def setup_logging(args, version): logger = logging.getLogger() set_log_level(logger, args) if len(logger.handlers) > 0: - formatter = JsonFormatter(datefmt='%a %b %d %H:%M:%S %Z %Y') + formatter = JsonFormatter(datefmt='%Y/%m/%d %H:%M:%S %z') formatter.setup( timestamp=args.timestamp, isWrite=args.isWrite, @@ -90,7 +90,7 @@ def setup_logging(args, version): if not logfile: logfile = '~/.wakatime.log' handler = logging.FileHandler(os.path.expanduser(logfile)) - formatter = JsonFormatter(datefmt='%a %b %d %H:%M:%S %Z %Y') + formatter = JsonFormatter(datefmt='%Y/%m/%d %H:%M:%S %z') formatter.setup( timestamp=args.timestamp, isWrite=args.isWrite,