1. Patrick Samson
  2. django-postman
  3. Pull requests

Pull requests

#4 Merged
Repository
jboutros
Branch
default
Repository
psam
Branch
default

added expects_localtime to the compact_date template filter in the case of Django > 1.4.

Author
  1. Joe Boutros
Reviewers
Description

This patch makes django-postman compatible with Django 1.4's timezone handling. In the case of Django 1.4 or greater, it called register.filter with expects_localtime=True for the compact_date filter. This tells Django to localize the time to the user's timezone before passing it to the filter.

Comments (1)