|
@@ -266,7 +266,7 @@ func (this *UserController) Edit() {
|
|
|
br.Msg = "错误的日期格式"
|
|
|
return
|
|
|
}
|
|
|
- validEndTime = validEndTime.In(time.Local).Add(-time.Hour*8 + time.Hour*24)
|
|
|
+ validEndTime = validEndTime.In(time.Local).Add(-time.Hour*8 + time.Hour*24 - time.Second)
|
|
|
if !validStartTime.Before(validEndTime) {
|
|
|
br.Msg = "请选择合理的有效期范围"
|
|
|
return
|
|
@@ -869,7 +869,7 @@ func (this *UserController) PotentialEdit() {
|
|
|
br.Msg = "错误的日期格式"
|
|
|
return
|
|
|
}
|
|
|
- validEndTime = validEndTime.In(time.Local).Add(-time.Hour*8 + time.Hour*24)
|
|
|
+ validEndTime = validEndTime.In(time.Local).Add(-time.Hour*8 + time.Hour*24 - time.Second)
|
|
|
if !validStartTime.Before(validEndTime) {
|
|
|
br.Msg = "请选择合理的有效期范围"
|
|
|
return
|
|
@@ -1065,7 +1065,7 @@ func (this *UserController) EditEnabled() {
|
|
|
return
|
|
|
}
|
|
|
validStartTime = validStartTime.Local().Add(-time.Hour * 8)
|
|
|
- validEndTime = validEndTime.Local().Add(-time.Hour*8 + time.Hour*24)
|
|
|
+ validEndTime = validEndTime.Local().Add(-time.Hour*8 + time.Hour*24 - time.Second)
|
|
|
curTime := time.Now()
|
|
|
if curTime.After(validEndTime) {
|
|
|
br.Msg = "有效期已到期,请重新设置"
|