mirror of
https://github.com/araddon/dateparse.git
synced 2024-12-05 05:30:13 +08:00
Merge pull request #83 from treuherz/patch-1
Fix typo in "unrecognised format" error
This commit is contained in:
commit
2df4713d07
@ -1510,7 +1510,7 @@ iterRunes:
|
||||
p.format = []byte("2006")
|
||||
return p, nil
|
||||
} else if len(datestr) < 4 {
|
||||
return nil, fmt.Errorf("unrecognized format, to short %v", datestr)
|
||||
return nil, fmt.Errorf("unrecognized format, too short %v", datestr)
|
||||
}
|
||||
if !t.IsZero() {
|
||||
if loc == nil {
|
||||
|
Loading…
Reference in New Issue
Block a user