add format time on index and details page