try to convert mtime to a date if we happen to get a non datetime object