diff --git a/pylog.py b/pylog.py
index 82bdcee..40fe60a 100755
--- a/pylog.py
+++ b/pylog.py
@@ -14,14 +14,6 @@ import pylog_config as cfg
__version = "v0.1-(2012-03-15)"
-
-def header():
- print '
'
- print ''
- print ''+cfg.title+''
- print cfg.header
- print ''
-
def dir_entry(f,path,depth,hidden):
if '_' in os.path.basename(f):
typ = f[f.rindex('_')+1:]
@@ -169,7 +161,8 @@ else:
script = sys.argv[0][sys.argv[0].rindex('/')+1:]
files,keys=get_newest(cfg.numofposts)
tz = time.timezone
- tzHHMM = "%03d%02d" % (tz/3600,abs((tz%3600)/60))
+
+ tzHHMM = "%0+3d%02d" % (tz/-3600,abs((tz%3600)/60))
print '''
@@ -180,7 +173,7 @@ else:
print " "+cfg.blogtitle+""
print " "+cfg.subtitle+""
print " "+cfg.topurl+script+""
- print " Pylog"+__version+""
+ print " Pylog "+__version+""
if len(keys)>0:
date=datetime.fromtimestamp(int(keys[0])).strftime("%a, %d %b %Y %H:%M:%S ")
print " "+date+tzHHMM+""
@@ -226,7 +219,12 @@ path=get_valid_path(path)
print ''
print ''
-header()
+print ''
+print ''
+print ''+cfg.title+''
+print ''
+print cfg.header
+print ''
print ''
print ''
print ''+cfg.subtitle+'
'