mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-25 14:50:29 +00:00
[api2] Return integer timestamp of event api
This commit is contained in:
@@ -2538,7 +2538,7 @@ class EventsView(APIView):
|
|||||||
|
|
||||||
epoch = datetime.datetime(1970, 1, 1)
|
epoch = datetime.datetime(1970, 1, 1)
|
||||||
local = utc_to_local(e.timestamp)
|
local = utc_to_local(e.timestamp)
|
||||||
d['time'] = (local - epoch).total_seconds() * 1000
|
d['time'] = (local - epoch).total_seconds()
|
||||||
|
|
||||||
d['nick'] = email2nickname(d['author'])
|
d['nick'] = email2nickname(d['author'])
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user