feat: display the timezone on reports

pull/21/head
db0 2023-09-12 15:52:18 +02:00
parent f74348e907
commit 2f16c4eedf
2 changed files with 3 additions and 2 deletions

View File

@ -73,5 +73,5 @@ class Models:
'target_domain': fields.String(description="The instance domain which was the target of this activity", example="lemmy.dbzer0.com"),
'report_type': fields.String(description="The type of report activity", enum=[e.name for e in enums.ReportType]),
'report_activity': fields.String(description="The activity reported", enum=[e.name for e in enums.ReportActivity]),
'created': fields.DateTime(description="The date this record was added",),
'created': fields.DateTime(description="The date this record was added"),
})

View File

@ -51,7 +51,8 @@ class Report(Resource):
'target_domain': r.target_domain,
'report_type': r.report_type.name,
'report_activity': r.report_activity.name,
'created': r.created,
'created': r.created.isoformat() + 'Z',
}
)
logger.debug(report_response)
return report_response,200