Use localized dates in templates. added localdate() as replacement for localedatetime(). fixes #155