Minor fix for time display code