Lokale Datumsangaben in Discourse-E-Mails benötigen eine bessere Darstellung

The Discourse local time displays wonderful dates in the web UI. However in emails it can be very very confusing.

For example: May 18, 2018 11:03 PM will display as May 19, 2018 9:03 AM in an emails which leaves recipients very confused.

I propose a multi step approach to improving this.

  • Immediate change… just display time zone with the time in emails so we would have May 19, 2018 9:03 AM Australia/Sydney

  • Longer term change, start storing local time zone in the user profile table (detect via JS and hand to server with a header). Then in emails we can send the times in the “last know local timezone”

  • Longer Longer term, allow users to control preferred timezone in user profile (automatic vs manually set to something)

14 „Gefällt mir“

Hmm we need to get that immediate fix in #1 for the 2.0 release at least cc @j.jaffeux

2 „Gefällt mir“

Working on it, but I still don’t understand why you say that it will display as May 19, 2018 9:03 AM in an email. This is not what will happen, it will display:

May 19, 2018 09:03 AM (Australia: Sidney)

The issue is that it will display all timezones set when configuring the date, and you might end up with something very verbose. So yes we will need step2, to have something cool here, so you say send this email to this user living in Australia/Sidney timezone

This is now done. We need to work on step 2 in the future, it will really make it very cool.

6 „Gefällt mir“

I am not clear why “all” time zones need to be shown? Why not simply default to UTC in emails for now as a short term 2.0 fix?

2 „Gefällt mir“

Im showing only one now, honestly we can just put UTC if you want, if we are moving soon to something else I don’t have strong opinions on this.

2 „Gefällt mir“

Ok one is fine that works for me!

Will be fixed by:

5 „Gefällt mir“

This topic was automatically closed after 3 days. New replies are no longer allowed.

Das ist eine Idee, wie man dies verbessern kann:

  1. Die Zeitzone in E-Mails soll auf die ursprüngliche Zeitzone basieren, die im Beitrag festgelegt wurde.
    Wenn ich meinen Zeitzonwert als
    [date=2019-12-15 time=23:59:00 timezone="EST"]
    festlege, sollte er per E-Mail genau so versendet werden.

  2. Eine bessere Formatierung der Zeitzone innerhalb dieser Foreneinstellung ermöglichen:
    image
    Derzeit ist dies etwas eingeschränkt:
    image
    (im Fall, dass wir den vollständigen Namen der Zeitzone oder eine andere aufwendige Formatierung anzeigen möchten)

Derzeit ist dies etwas eingeschränkt:
image

  1. Alternativ kann der Administrator in den Einstellungen die Zeitzone auswählen, in der die E-Mails versendet werden sollen, vielleicht über einen Umschalter wie:
    discourse lokale Datums-E-Mail-Format-Zeitzone
2 „Gefällt mir“