andrei
(Andrei Prigorshnev)
25 Mayo, 2022 15:41
8
Esto corrige la fecha en los correos electrónicos tanto al silenciar como al suspender usuarios. Las fechas se convertirán a la zona horaria del usuario:
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.
A continuación, debemos solucionar el problema del redondeo. Lo estoy revisando.
3 Me gusta