mirror of
https://gitee.com/dromara/carbon.git
synced 2024-11-29 18:57:37 +08:00
update
This commit is contained in:
parent
aae4528de8
commit
f34e6e6cd4
@ -36,7 +36,6 @@ func (c Carbon) Parse(value string, timezone ...string) Carbon {
|
||||
c = c.ParseByLayout(value, layout)
|
||||
if c.Error != nil {
|
||||
c.Error = invalidValueError(value)
|
||||
return c
|
||||
}
|
||||
return c
|
||||
}
|
||||
@ -62,7 +61,6 @@ func (c Carbon) ParseByFormat(value string, format string, timezone ...string) C
|
||||
c = c.ParseByLayout(value, format2layout(format))
|
||||
if c.Error != nil {
|
||||
c.Error = invalidFormatError(value, format)
|
||||
return c
|
||||
}
|
||||
return c
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user