# Discourse local dates need better presentation in emails

**URL:** https://meta.discourse.org/t/discourse-local-dates-need-better-presentation-in-emails/87785
**Category:** UX
**Created:** [May 17, 2018, 11:09pm UTC](https://meta.discourse.org/t/discourse-local-dates-need-better-presentation-in-emails/87785 "2018-05-17T23:09:41Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [May 17, 2018, 11:09pm UTC](https://meta.discourse.org/t/discourse-local-dates-need-better-presentation-in-emails/87785/1 "2018-05-17T23:09:41Z")

</div>

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)

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [May 18, 2018, 12:07am UTC](https://meta.discourse.org/t/discourse-local-dates-need-better-presentation-in-emails/87785/3 "2018-05-18T00:07:33Z")

</div>

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

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [May 18, 2018, 12:01pm UTC](https://meta.discourse.org/t/discourse-local-dates-need-better-presentation-in-emails/87785/4 "2018-05-18T12:01:13Z")

</div>

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

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [May 18, 2018, 3:14pm UTC](https://meta.discourse.org/t/discourse-local-dates-need-better-presentation-in-emails/87785/5 "2018-05-18T15:14:48Z")

</div>

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

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [May 18, 2018, 3:14pm UTC](https://meta.discourse.org/t/discourse-local-dates-need-better-presentation-in-emails/87785/6 "2018-05-18T15:14:51Z")

</div>



---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [May 18, 2018, 4:12pm UTC](https://meta.discourse.org/t/discourse-local-dates-need-better-presentation-in-emails/87785/7 "2018-05-18T16:12:44Z")

</div>



---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [May 18, 2018, 6:54pm UTC](https://meta.discourse.org/t/discourse-local-dates-need-better-presentation-in-emails/87785/8 "2018-05-18T18:54:37Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [May 18, 2018, 6:56pm UTC](https://meta.discourse.org/t/discourse-local-dates-need-better-presentation-in-emails/87785/9 "2018-05-18T18:56:34Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [May 18, 2018, 6:57pm UTC](https://meta.discourse.org/t/discourse-local-dates-need-better-presentation-in-emails/87785/10 "2018-05-18T18:57:47Z")

</div>

Ok one is fine that works for me!

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [December 21, 2018, 4:07pm UTC](https://meta.discourse.org/t/discourse-local-dates-need-better-presentation-in-emails/87785/14 "2018-12-21T16:07:07Z")

</div>

Will be fixed by:

[https://github.com/discourse/discourse/pull/6805](https://github.com/discourse/discourse/pull/6805)

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [December 24, 2018, 5:00pm UTC](https://meta.discourse.org/t/discourse-local-dates-need-better-presentation-in-emails/87785/15 "2018-12-24T17:00:02Z")

</div>

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

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [November 19, 2019, 3:13pm UTC](https://meta.discourse.org/t/discourse-local-dates-need-better-presentation-in-emails/87785/16 "2019-11-19T15:13:37Z")

</div>



---

<div class="post-metadata">

### Author: ![loginerror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/loginerror/32/156605_2.png) [@loginerror](https://meta.discourse.org/u/loginerror)
#### Post date: [November 19, 2019, 1:40pm UTC](https://meta.discourse.org/t/discourse-local-dates-need-better-presentation-in-emails/87785/17 "2019-11-19T13:40:24Z")

</div>

It is an idea on how to improve this

1. Email timezone to be based on the original timezone set in the post  
If I set my timezone value as  
`[date=2019-12-15 time=23:59:00 timezone="EST"]`  
It should be sent out via email as such.

2. Allow better formatting of the timezone within this forum setting:  
 ![image](https://global.discourse-cdn.com/meta/original/3X/8/1/812e21bef18fdf694ee69cc1962d1a10a42a04c6.png)  
Currently it is a bit limited:  
 ![image](https://global.discourse-cdn.com/meta/original/3X/3/2/32fc347850c267b6103466df4b81487764f4587c.png)  
(just in case we would like to display the full name of the timezone or some other fancy formatting)

3. Alternatively, allow the admin to choose the timezone they want to send the emails with in the setting, maybe a toggle such as:  
discourse local dates email format timezone
