feat: display the timezone on reports
parent
f74348e907
commit
2f16c4eedf
|
@ -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"),
|
||||
})
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue