Skip to content

Commit

Permalink
Merge pull request #97 from ECN/use-iso8601-time-for-item-lastupdated
Browse files Browse the repository at this point in the history
Format item lastupdated time as iso8601
  • Loading branch information
campb303 authored Oct 28, 2020
2 parents ac8570d + 3bdb99f commit 3398a82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/ECNQueue.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def __getLastUpdated(self) -> str:
"""
unixTime = os.path.getmtime(self.__path)
formattedTime = time.strftime('%m-%d-%y %I:%M %p', time.localtime(unixTime))
return formattedTime
return self.__getFormattedDate(formattedTime)

def __getRawItem(self) -> list:
"""Returns a list of all lines in the item file
Expand Down Expand Up @@ -1198,4 +1198,4 @@ def getQueues() -> list:
if isDirectory and isValid:
queues.append(Queue(file))

return queues
return queues

0 comments on commit 3398a82

Please sign in to comment.