use nice timestamps (like ISO 8601) #1

Merged
n merged 1 commit from paige/quotes-bot-python:main into main 2025-02-02 00:49:01 -06:00
Showing only changes of commit e4df14c3b7 - Show all commits

4
bot.py
View file

@ -1,6 +1,7 @@
import simplematrixbotlib as botLibrary
import json
import fetch
import time
version = "0.3.0"
@ -76,8 +77,9 @@ async def make_choice(room, message):
def formatData(data):
if data is not None:
timestamp = time.strftime("%Y-%m-%d %H:%M:%S", time.gmtime(data['created']))
dataToFormat = data
created = str(data['created'])
created = timestamp
description = str(data['desc'])
imageid = str(data['iid'])
ocr = str(data['ocr'])