1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-25 06:33:48 +00:00

[api2] Return integer timestamp of event api

This commit is contained in:
zhengxie
2014-10-31 10:17:07 +08:00
parent e1e5e885a5
commit f0fea163f5

View File

@@ -2538,7 +2538,7 @@ class EventsView(APIView):
epoch = datetime.datetime(1970, 1, 1)
local = utc_to_local(e.timestamp)
d['time'] = (local - epoch).total_seconds() * 1000
d['time'] = (local - epoch).total_seconds()
d['nick'] = email2nickname(d['author'])