Output time correctly