Timestamp fix
This commit is contained in:
parent
cb2022a236
commit
64c0b794ee
@ -250,6 +250,10 @@ for entry in entries_list:
|
||||
timestamp = os.stat(stampfile)
|
||||
else:
|
||||
timestamp = os.stat(entry)
|
||||
stampfile = os.path.join(entries_dir, title + '.stamp')
|
||||
stamp = open(stampfile, 'w')
|
||||
stamp.close()
|
||||
utime = os.utime(stampfile, (os.stat(entry)[8], os.stat(entry)[8]))
|
||||
|
||||
timestamp = time.localtime(timestamp[8])
|
||||
entry = timestamp, entry
|
||||
@ -480,10 +484,7 @@ else:
|
||||
title = title.replace('.' + entries_suffix, '')
|
||||
|
||||
stampfile = os.path.join(entries_dir, title + '.stamp')
|
||||
if not os.path.exists(stampfile):
|
||||
stamp = open(stampfile, 'w')
|
||||
stamp.close()
|
||||
else:
|
||||
if os.path.exists(stampfile):
|
||||
date = time.localtime(os.stat(stampfile)[8])
|
||||
date = time.strftime("%c", date)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user