直接上代码 loc, _ := time.LoadLocation(getConfig("common", "timezone")) // 正常代码 直接写时间字符串是不会出问题的 toBeCharge := "2006-01-02 15:04:05" // 错误代码,因为字符串中出现\r\n字符才会出...