StrToTime问题,time.RFC1123Z解析出来差距较大
Opened this issue · 2 comments
Shinku-Chen commented
Thu, 26 May 2016 00:00:00 +0800
time.Parse(time.RFC1123Z, "Thu, 26 May 2016 00:00:00 +0800") //1464192000 2016-05-26 00:00:00+8
fun.StrToTime("Thu, 26 May 2016 00:00:00 +0800") //1464336000 2016-05-27 16:00:00+8
smallmenu commented
我觉得还是单独处理 time.RFC1123Z 这种标准的格式,直接Parse比较好。类似这里: