diff --git a/main.py b/main.py index 34b4795..9faffad 100644 --- a/main.py +++ b/main.py @@ -344,7 +344,7 @@ async def reporting(get: CL.CL_REPORTING,api_key: APIKey = Depends(auth.get_api_ customer_ID = entry[0][0] service_ID = entry[0][1] reportingdate = datetime.now() - reportingdate = reportingdate.strftime("yyyy-MM-dd HH:mm:ss") + reportingdate = reportingdate.strftime("%Y-%m-%d %H:%M:%S") print(reportingdate) database(f"INSERT INTO `Kunden.services.reporting` (username,service_ID,customer_ID,reportingdate,lastaccess) VALUES ('{get.username}','{service_ID}','{customer_ID}',{reportingdate}',{get.lastaccess}'","","") print(f"{service_ID} - {customer_ID}")