From 9e9dd5c5352d5f9b98d061b61b095a7d167de953 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Sat, 17 Apr 2010 00:33:24 +0000 Subject: [PATCH] Make script actually work. llvm-svn: 101591 --- clang/utils/CIndex/completion_logger_server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/utils/CIndex/completion_logger_server.py b/clang/utils/CIndex/completion_logger_server.py index 759c79bac58d..076fa73ef49d 100755 --- a/clang/utils/CIndex/completion_logger_server.py +++ b/clang/utils/CIndex/completion_logger_server.py @@ -30,7 +30,7 @@ def main(): break else: f.write("{ "); - f.write("\"time\": \"{0}\"".format(datetime.utcnow().strftime('%Y-%m-%d %H:%M:%S'))) + f.write("\"time\": \"{0}\"".format(datetime.datetime.utcnow().strftime('%Y-%m-%d %H:%M:%S'))) f.write(", \"sender\": \"{0}\" ".format(addr[0])) f.write(", data: ") f.write(data)