fix for date in mail template