fixed date bugs on emails