Fix bug when displaying dates on activity logs.