diff options
author | Leif Johansson <leifj@sunet.se> | 2012-10-21 14:32:02 +0200 |
---|---|---|
committer | Leif Johansson <leifj@sunet.se> | 2012-10-21 14:32:02 +0200 |
commit | 81e712169e875302a011901a1f134b1f2fe1c5ea (patch) | |
tree | d024d78fdcfb84b4502759a82dc2a007187371bc | |
parent | c694152f25a4c4dc1fe4001e5c67e03dc92de9f5 (diff) |
iso fmt dates
-rw-r--r-- | meetingtools/apps/stats/views.py | 12 |
1 files changed, 6 insertions, 6 deletions
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 = [] |