Fixed bug with history time format