mirror of
https://github.com/araddon/dateparse.git
synced 2024-11-10 11:51:54 +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")
|
p.format = []byte("2006")
|
||||||
return p, nil
|
return p, nil
|
||||||
} else if len(datestr) < 4 {
|
} 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 !t.IsZero() {
|
||||||
if loc == nil {
|
if loc == nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user