From f0fea163f5f2a173bca38fef98f74ffc9a026aee Mon Sep 17 00:00:00 2001 From: zhengxie Date: Fri, 31 Oct 2014 10:17:07 +0800 Subject: [PATCH] [api2] Return integer timestamp of event api --- seahub/api2/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seahub/api2/views.py b/seahub/api2/views.py index ca2fd6557f..0bb2a37b62 100644 --- a/seahub/api2/views.py +++ b/seahub/api2/views.py @@ -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'])