Discourse local dates need better presentation in emails

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개의 좋아요

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

2개의 좋아요

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개의 좋아요

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개의 좋아요

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개의 좋아요

Ok one is fine that works for me!

Will be fixed by:

https://github.com/discourse/discourse/pull/6805

5개의 좋아요

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

이 기능을 개선하는 방법에 대한 아이디어입니다

  1. 이메일의 시간대는 게시글에 설정된 원래 시간대를 기준으로 사용
    시간대 값을 다음과 같이 설정하면
    [date=2019-12-15 time=23:59:00 timezone="EST"]
    이메일도 해당 형식으로 전송되어야 합니다.

  2. 이 포럼 설정 내에서 시간대를 더 잘 포맷할 수 있도록 허용:
    image
    현재는 다소 제한적입니다:
    image
    (시간대 전체 이름이나 기타 더 세련된 포맷을 표시하고 싶을 경우를 대비하여)

    현재는 다소 제한적입니다:
    image

  3. 대안적으로, 설정에서 관리자가 이메일을 보낼 때 사용할 시간대를 선택할 수 있도록 허용하면 좋겠습니다. 예를 들어 다음과 같은 토글을 추가할 수 있습니다:
    discourse local dates email format timezone

2개의 좋아요