fix bug in displaying time in index