Since the timesince filter does not accept any arguments, you will have to manually disable the clock from your date.
Here is a custom template filter that you can use to disconnect minutes, seconds, and microseconds from a datetime object:
If you have not previously used a special filter or template tag, you will need to create a directory in your django application (i.e. at the same level as models.py and views.py) called templatetags , and create a file inside it called __init__.py (this is done by the standard python module).
Then create the python source file in it, for example my_tags.py , and paste the sample code into it. Inside your view, use {% load my_tags %} so that Django loads your tags, and then you can use the filter above, as shown in the documentation above.
Caspar
source share