From be2959229d2a70565003c4f3a42ed47d2621beff Mon Sep 17 00:00:00 2001 From: Michael Ford Date: Fri, 13 Jun 2014 09:12:50 +0100 Subject: [PATCH] Bug with datetimes --- setup.py | 2 +- silk/templatetags/filters.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 8d00b115..82d4cee5 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ setup( name='django-silk', - version='0.2', + version='0.2.1', packages=['silk'], include_package_data=True, license='MIT License', diff --git a/silk/templatetags/filters.py b/silk/templatetags/filters.py index 6b5c58b9..3a3bb2c2 100644 --- a/silk/templatetags/filters.py +++ b/silk/templatetags/filters.py @@ -47,7 +47,9 @@ def hash(h, key): def _process_microseconds(dt_strftime): - time, micro = dt_strftime.split('.') + splt = dt_strftime.split('.') + micro = splt[-1] + time = '.'.join(splt[0:-1]) micro = '%.3f' % float('0.' + micro) return time + micro[1:]