Divide TrialEnd date by 1000 to account for it being in ms (#20173)

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Этот коммит содержится в:
Nick Misasi
2022-05-10 13:55:21 -04:00
коммит произвёл GitHub
родитель aee68c7ae4
Коммит 340612ec10

Просмотреть файл

@@ -53,7 +53,8 @@ func (a *App) SendUpgradeConfirmationEmail() *model.AppError {
}
// Build readable trial end date
endTimeStamp := subscription.TrialEndAt
// Trial end is passed as unix timestamp in ms
endTimeStamp := subscription.TrialEndAt / 1000
t := time.Unix(endTimeStamp, 0)
trialEndDate := fmt.Sprintf("%s %d, %d", t.Month(), t.Day(), t.Year())