Change to_string() arguments

string(dateobject, precision) where precision is

datehelper.PRECISION_DATE
or
datehelper.PRECISION_TIME
Change mail_content time stamps