use time keyword constant
This commit is contained in:
+1
-1
@@ -107,7 +107,7 @@ func parseAirportAndTime(s string) (airport string, arrivalTime time.Time) {
|
||||
|
||||
func parseDof(text string) time.Time {
|
||||
value := getFields(DofValueRex, text)
|
||||
dof, _ := time.Parse("060102", value["time"])
|
||||
dof, _ := time.Parse("060102", value[KeyTime])
|
||||
return dof
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user