mirror of https://github.com/bjdgyc/anylink.git
解决上传时间相差8小时的问题
This commit is contained in:
parent
77518a3a0c
commit
7b19010892
|
@ -37,13 +37,13 @@ func UploadUser(file string) error {
|
||||||
if len(row[4]) < 6 {
|
if len(row[4]) < 6 {
|
||||||
row[4] = utils.RandomRunes(8)
|
row[4] = utils.RandomRunes(8)
|
||||||
}
|
}
|
||||||
limittime, _ := time.Parse("2006-01-02 15:04:05", row[5])
|
limittime, _ := time.ParseInLocation("2006-01-02 15:04:05", row[5], time.Local)
|
||||||
disableOtp, _ := strconv.ParseBool(row[7])
|
disableOtp, _ := strconv.ParseBool(row[7])
|
||||||
group := []string{row[8]}
|
group := []string{row[8]}
|
||||||
status := cast.ToInt8(row[9])
|
status := cast.ToInt8(row[9])
|
||||||
sendmail, _ := strconv.ParseBool(row[10])
|
sendmail, _ := strconv.ParseBool(row[10])
|
||||||
// createdAt, _ := time.Parse("2006-01-02 03:04:05", row[11])
|
// createdAt, _ := time.ParseInLocation("2006-01-02 15:04:05", row[11], time.Local)
|
||||||
// updatedAt, _ := time.Parse("2006-01-02 03:04:05", row[12])
|
// updatedAt, _ := time.ParseInLocation("2006-01-02 15:04:05", row[12], time.Local)
|
||||||
user = &dbdata.User{
|
user = &dbdata.User{
|
||||||
Id: id,
|
Id: id,
|
||||||
Username: row[1],
|
Username: row[1],
|
||||||
|
|
Loading…
Reference in New Issue