From 34a25b9b28f3c2c9a1fce1729b1ae31e3fc50fe8 Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Thu, 11 Oct 2007 02:24:17 -0700 Subject: [PATCH] node.py: don't append 'Z' to the timestamp, since it's really localtime. We need deeper changes to make it be UTC --- src/allmydata/node.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/allmydata/node.py b/src/allmydata/node.py index 2674b31a..c1d0b4ff 100644 --- a/src/allmydata/node.py +++ b/src/allmydata/node.py @@ -176,7 +176,9 @@ class Node(service.MultiService): except TypeError, e: msg = "ERROR: output string '%s' contained invalid %% expansion, error: %s, args: %s\n" % (`msg`, e, `args`) # TODO: modify the timestamp to include milliseconds - log.FileLogObserver.timeFormat="%Y-%m-%d %H:%M:%S.000Z" + # TODO: modify it to be in UTC instead of localtime + # (see twisted/python/log.py:FileLogObserver.formatTime line 362) + log.FileLogObserver.timeFormat="%Y-%m-%d %H:%M:%S" log.callWithContext({"system":logsrc},log.msg,(self.short_nodeid + ": " + humanreadable.hr(msg))) def _setup_tub(self, local_addresses): -- 2.45.2