Задать вопрос

Тел: +7 965 3737 888

429

Просмотров

0

Ответов

UTC-based astimezone filter

A version of http://djangosnippets.org/snippets/2388/ which assumes UTC-based dates.

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.

Вопрос полезен? Да0/Нет0
file_2587.py(424.0б)
None