ParseInLocation出了這個問題
t,?err?:=?time.ParseInLocation("02/Jan/2006:15:04:05?+0000",?ret[4],?loc)
cannot parse "[24/Jul/2019:21:48:23 +0000]" as "02" [24/Jul/2019:21:48:23 +0000] 這個是什么問題啊,時間格式也沒問題
t,?err?:=?time.ParseInLocation("02/Jan/2006:15:04:05?+0000",?ret[4],?loc)
cannot parse "[24/Jul/2019:21:48:23 +0000]" as "02" [24/Jul/2019:21:48:23 +0000] 這個是什么問題啊,時間格式也沒問題
2019-07-24
舉報
2019-07-24
2019/07/24 21:53:03 ParseInLocation fail: parsing time "[24/Jul/2019:21:53:03 +0000]" as "02/Jan/2006:15:04:05 +0000": cannot parse "[24/Jul/2019:21:53:03 +0000]" as "02" [24/Jul/2019:21:53:03 +0000]
ret[4]打印出來是這個 [24/Jul/2019:21:53:03 +0000]