Fix the datetime displaying in History page