str2
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user