mirror of
https://gitee.com/dromara/carbon.git
synced 2024-11-30 03:07:36 +08:00
v2.3.2 优化 String
方法
This commit is contained in:
parent
92e71c92e7
commit
c02f5733ac
@ -18,7 +18,7 @@ func (c Carbon) String() string {
|
||||
if key == "format" {
|
||||
return c.Format(value, tz)
|
||||
}
|
||||
return c.ToDateTimeString(tz)
|
||||
return c.ToDateTimeString(c.Location())
|
||||
}
|
||||
|
||||
// ToString outputs a string in "2006-01-02 15:04:05.999999999 -0700 MST" layout.
|
||||
|
Loading…
Reference in New Issue
Block a user