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