|
@@ -56,8 +56,8 @@ func TimeFmtStr(t time.Time, fmt string) string {
|
|
|
|
|
|
// StrToDate 字符串转日期
|
|
|
func StrToDate(s string) (t time.Time, err error) {
|
|
|
- t, err = time.ParseInLocation(DateFmtLong, s, time.Local)
|
|
|
-
|
|
|
+ //t, err = time.ParseInLocation(DateFmtLong, s, time.Local)
|
|
|
+ t, err = time.Parse(DateFmtLong, s)
|
|
|
return
|
|
|
}
|
|
|
|