andrei
(Andrei Prigorshnev)
25 Maggio 2022, 3:41pm
8
Questa correzione gestisce la data nelle email sia durante il silenziamento che la sospensione degli utenti. Le date verranno convertite nel fuso orario dell’utente:
main ← AndrewPrigorshnev:fix/respect-user-timezone-in-silencing-email
opened 03:37PM - 25 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.
Successivamente dovremo correggere il problema dell’arrotondamento. Ci sto lavorando.
3 Mi Piace