chore: set universal timezone

This commit is contained in:
mngshm
2025-01-04 15:48:05 +05:30
parent cf56776245
commit 6a3ef27408
2 changed files with 2 additions and 2 deletions

View File

@@ -101,7 +101,7 @@
font-size: 16px; " >
<p>Hi,</p>
<p>
We detected a new login to your Ente account at {{ .Date }}.
We detected a new login to your Ente account at {{ .Date }} UTC.
<br>
<br>
If this is not you, please reset your password. For any assistance or questions, please reply to this email.

View File

@@ -346,7 +346,7 @@ func (c *UserController) AddTokenAndNotify(userID int64, app ente.App, token str
return
}
emailSendErr := emailUtil.SendTemplatedEmail([]string{user.Email}, "Ente", "team@ente.io", emailCtrl.LoginSuccessSubject, emailCtrl.LoginSuccessTemplate, map[string]interface{}{
"Date": t.Now().Format("02 Jan, 2006 15:04"),
"Date": t.Now().UTC().Format("02 Jan, 2006 15:04"),
}, nil)
if emailSendErr != nil {
log.WithError(emailSendErr).Error("Failed to send email")