support time format with or without T