From 81e712169e875302a011901a1f134b1f2fe1c5ea Mon Sep 17 00:00:00 2001 From: Leif Johansson Date: Sun, 21 Oct 2012 14:32:02 +0200 Subject: iso fmt dates --- meetingtools/apps/stats/views.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'meetingtools/apps') diff --git a/meetingtools/apps/stats/views.py b/meetingtools/apps/stats/views.py index 7e94ab6..8da3bf5 100644 --- a/meetingtools/apps/stats/views.py +++ b/meetingtools/apps/stats/views.py @@ -71,9 +71,9 @@ def user_minutes_api(request,username=None): end = form.cleaned_data['end'] if begin is not None: - p['filter-gte-date-created'] = begin + p['filter-gte-date-created'] = begin.isoformat() if end is not None: - p['filter-lt-date-created'] = end + p['filter-lt-date-created'] = end.isoformat() r = api.request('report-bulk-consolidated-transactions',p) series = [] @@ -150,9 +150,9 @@ def domain_minutes_api(request,domain): begin = begin.replace(microsecond=0) if begin is not None: - p['filter-gte-date-created'] = begin + p['filter-gte-date-created'] = begin.isoformat() if end is not None: - p['filter-lt-date-created'] = end + p['filter-lt-date-created'] = end.isoformat() else: end = datetime.now().replace(microsecond=0) # for display only @@ -234,9 +234,9 @@ def room_minutes_api(request,rid): end = form.cleaned_data['end'] if begin is not None: - p['filter-gte-date-created'] = begin + p['filter-gte-date-created'] = begin.isoformat() if end is not None: - p['filter-lt-date-created'] = end + p['filter-lt-date-created'] = end.isoformat() r = api.request('report-bulk-consolidated-transactions',p) series = [] -- cgit v1.1