Replacing Django's date filter with localdate.