add format for time fields