djangosnippets.org: Latest snippets tagged with 'times'https://djangosnippets.org/tags/times/2011-10-27T15:22:30.758952-05:00UTC-based astimezone filter
2011-10-27T15:22:30.758952-05:00miracle2khttps://djangosnippets.org/snippets/2583/<p>A version of http://djangosnippets.org/snippets/2388/ which assumes UTC-based dates.</p>
<p>This is when you store dates in UTC (as you should), and want to display them in your site's local timezone, and you notice that Django's timesince/time template tags still do not support timezones.</p>
Freely redistributable