fixed problem in date from HistoryViewController