Travis CI config updated and typo fixed.

formula
Ri Xu 7 years ago
parent 07a4140098
commit 76366fc1d9
No known key found for this signature in database
GPG Key ID: BA5E5BB1C948EDF7

@ -9,7 +9,7 @@ go:
script: script:
- go vet ./... - go vet ./...
- go test -v -coverprofile=coverage.txt -covermode=atomic - go test ./... -v -coverprofile=coverage.txt -covermode=atomic
after_success: after_success:
- bash <(curl -s https://codecov.io/bash) - bash <(curl -s https://codecov.io/bash)

@ -952,8 +952,8 @@ func parseTime(i int, v string) string {
{"%%%%", "January"}, {"%%%%", "January"},
{"&&&&", "Monday"}, {"&&&&", "Monday"},
} }
// It is the presence of the "am/pm" indicator that determins if this is a // It is the presence of the "am/pm" indicator that determines if this is
// 12 hour or 24 hours time format, not the number of 'h' characters. // a 12 hour or 24 hours time format, not the number of 'h' characters.
if is12HourTime(format) { if is12HourTime(format) {
format = strings.Replace(format, "hh", "03", 1) format = strings.Replace(format, "hh", "03", 1)
format = strings.Replace(format, "h", "3", 1) format = strings.Replace(format, "h", "3", 1)

Loading…
Cancel
Save