Expire field

main
Bob Mottram 2021-07-28 09:58:12 +01:00
parent 53f4d59069
commit 95129e2e58
1 changed files with 2 additions and 2 deletions

View File

@ -838,7 +838,7 @@ def sharesCatalogAccountEndpoint(baseDir: str, httpPrefix: str,
if not re.match(matchPattern, description):
continue
expireDate = datetime.datetime.fromtimestamp(item['durationSec'])
expireDate = datetime.datetime.fromtimestamp(item['expire'])
expireDateStr = expireDate.strftime("%Y-%m-%dT%H:%M:%SZ")
shareId = getValidSharedItemID(owner, item['displayName'])
@ -925,7 +925,7 @@ def sharesCatalogEndpoint(baseDir: str, httpPrefix: str,
continue
expireDate = \
datetime.datetime.fromtimestamp(item['durationSec'])
datetime.datetime.fromtimestamp(item['expire'])
expireDateStr = expireDate.strftime("%Y-%m-%dT%H:%M:%SZ")
shareId = getValidSharedItemID(owner, item['displayName'])