Browse Source

残差分析

gmy 2 months ago
parent
commit
8262cfaf9f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      utils/date_util.go

+ 1 - 1
utils/date_util.go

@@ -111,7 +111,7 @@ func isLeap(year int) bool {
 
 // StringToTime string 类型时间 转换为 time.Time 类型
 func StringToTime(date string) time.Time {
-	t, _ := time.Parse("2006-01-02", date)
+	t, _ := time.ParseInLocation("2006-01-02", date, time.Local)
 	return t
 }