andrei
(Andrei Prigorshnev)
25.Май.2022 15:41:04
8
Это исправляет отображение даты в письмах как при отключении уведомлений, так и при приостановке аккаунтов пользователей. Даты будут конвертированы в часовой пояс пользователя:
main ← AndrewPrigorshnev:fix/respect-user-timezone-in-silencing-email
merged 09:58AM - 27 May 22 UTC
This fixes one of the problems reported in https://meta.discourse.org/t/wrong-cu… stom-date-and-time-in-silenced-and-suspended-warnings/226297/2.
When silencing or suspending a user, we send a date in UTC instead of sending a date in user's timezone, which is confusing.
For example a user in GMT+1 who was suspended until _8 May 2022 17:25_ will receive this email:

This PR fixes both silencing and suspending emails. Mails will be sent with date and time in user's timezone. If a user haven't set up timezone, dates will be sent in UTC.
Далее нам нужно исправить проблему с округлением. Я занимаюсь этим вопросом.
3 лайка