mirror of
https://git.lecygnenoir.info/LecygneNoir/prismedia.git
synced 2025-10-04 01:49:15 +02:00
Need to strip the getmtime timestamp as some OSes return timestamp with microsecond (XXXX.YYYY)
This commit is contained in:
parent
1a937098d8
commit
42ee7d761b
1 changed files with 2 additions and 2 deletions
|
@ -135,8 +135,8 @@ def searchThumbnail(options):
|
||||||
|
|
||||||
|
|
||||||
def searchOriginalDate(options):
|
def searchOriginalDate(options):
|
||||||
fileModificationDate = getmtime(options.get('--file'))
|
fileModificationDate = str(getmtime(options.get('--file'))).split('.')
|
||||||
return datetime.datetime.fromtimestamp(fileModificationDate).isoformat()
|
return datetime.datetime.fromtimestamp(int(fileModificationDate[0])).isoformat()
|
||||||
|
|
||||||
|
|
||||||
# return the nfo as a RawConfigParser object
|
# return the nfo as a RawConfigParser object
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue