Skip to content

Commit

Permalink
Bug with datetimes
Browse files Browse the repository at this point in the history
  • Loading branch information
mtford90 committed Jun 13, 2014
1 parent a48e611 commit be29592
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

setup(
name='django-silk',
version='0.2',
version='0.2.1',
packages=['silk'],
include_package_data=True,
license='MIT License',
Expand Down
4 changes: 3 additions & 1 deletion silk/templatetags/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:]

Expand Down

0 comments on commit be29592

Please sign in to comment.