This commit is contained in:
苏尹岚
2020-06-27 11:51:02 +08:00
parent 4af8248432
commit 55a381d214
5 changed files with 21 additions and 7 deletions

View File

@@ -307,6 +307,9 @@ func Time2DateStr(t time.Time) string {
}
func Str2Time(timeStr string) time.Time {
if timeStr == "" {
return ZeroTimeValue
}
retVal, err := TryStr2Time(timeStr)
if err != nil {
baseapi.SugarLogger.Errorf("time.ParseInLocation failed, timeStr:%v, error:%v", timeStr, err)