From 52ec4d344749ba015eb2754380afce6a5b1756b6 Mon Sep 17 00:00:00 2001 From: JobJob Date: Fri, 10 May 2013 16:26:52 +1000 Subject: [PATCH] Output local time instead of gmttime in hamlpy_watcher when in verbose mode --- hamlpy/hamlpy_watcher.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hamlpy/hamlpy_watcher.py b/hamlpy/hamlpy_watcher.py index ae15358..421c2f6 100644 --- a/hamlpy/hamlpy_watcher.py +++ b/hamlpy/hamlpy_watcher.py @@ -3,7 +3,7 @@ # # Watch a folder for files with the given extensions and call the HamlPy # compiler if the modified time has changed since the last check. -from time import gmtime, strftime +from time import strftime import argparse import sys import codecs @@ -135,7 +135,7 @@ def _compiled_path(destination, filename): def compile_file(fullpath, outfile_name, compiler_args): """Calls HamlPy compiler.""" if Options.VERBOSE: - print '%s %s -> %s' % (strftime("%H:%M:%S", gmtime()), fullpath, outfile_name) + print '%s %s -> %s' % (strftime("%H:%M:%S"), fullpath, outfile_name) try: if Options.DEBUG: print "Compiling %s -> %s" % (fullpath, outfile_name)