# Change of date in digest email body

**URL:** <https://meta.discourse.org/t/change-of-date-in-digest-email-body/34983>\
**Category:** Feature\
**Tags:** activity-summary\
**Created:** [2015年十月27日 20:09 UTC](https://meta.discourse.org/t/change-of-date-in-digest-email-body/34983 "2015-10-27T20:09:18Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mischief](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mischief/32/4291_2.png) [@Mischief](https://meta.discourse.org/u/Mischief)\
**Post date:** [2015年十月27日 20:09 UTC](https://meta.discourse.org/t/change-of-date-in-digest-email-body/34983/1 "2015-10-27T20:09:18Z")

</div>

Continuing the discussion from [Date in digest emails are not localised](https://meta.discourse.org/t/date-in-digest-emails-are-not-localised/26646/19):

> [@Date in digest emails are not localised](https://meta.discourse.org/t/date-in-digest-emails-are-not-localised/26646/19):
>
> This is one of those cases where I think the existence of the question implies deeper problems.
> 
> Omit Needless Words, right? So I am changing it to:
> 
> ```
> subject_template: "[%{site_name}] Digest"
> 
> ```
> 
> Simpler, and no more date localization problem..

There is still a date localisation problem in the actual digest message body where at the start of the digest it says "A brief summary of “[%{site\_name}] since your last visit on mm-dd-year”.

This date format can be very confusing for our members who are mainly based in the UK.

If it could be localised or alternatively a full textual representation of the month used it would be appreciated.

---

<div class="post-metadata">

**Author:** ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)\
**Post date:** [2015年十月27日 23:11 UTC](https://meta.discourse.org/t/change-of-date-in-digest-email-body/34983/2 "2015-10-27T23:11:13Z")

</div>

That date is currently not translatable in Transifex. I submitted a fix for it some time ago…

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

---

<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:** [2015年十月27日 23:12 UTC](https://meta.discourse.org/t/change-of-date-in-digest-email-body/34983/3 "2015-10-27T23:12:58Z")

</div>

I think there were problems with that commit as I recall, which is why it hasn’t been merged.

@techapj can we change the digest default text so it uses a more universal date format? Maybe something like

> Since your last visit on August 23rd

where the year is optional if it was in the current calendar yar.

---

<div class="post-metadata">

**Author:** ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)\
**Post date:** [2015年十月27日 23:19 UTC](https://meta.discourse.org/t/change-of-date-in-digest-email-body/34983/4 "2015-10-27T23:19:23Z")

</div>

Well, the date format should take the user’s locale into account, anything else is just a hack.

My PR worked perfectly fine in my dev environment. I haven’t been told about any problems, but if there are some, I’ll try to fix them.

---

<div class="post-metadata">

**Author:** ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)\
**Post date:** [2015年十月28日 16:50 UTC](https://meta.discourse.org/t/change-of-date-in-digest-email-body/34983/5 "2015-10-28T16:50:06Z")

</div>

Done via:

[https://github.com/discourse/discourse/commit/734c272de81baac8a70801e257a994a8a6e9f616](https://github.com/discourse/discourse/commit/734c272de81baac8a70801e257a994a8a6e9f616)

* * *

Will switch to localized date again once @gerhard’s PR is merged.

---

<div class="post-metadata">

**Author:** ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)\
**Post date:** [2015年十一月2日 18:40 UTC](https://meta.discourse.org/t/change-of-date-in-digest-email-body/34983/6 "2015-11-02T18:40:49Z")

</div>

I’ve merged in the PR from @gerhard now!

---

<div class="post-metadata">

**Author:** ![Mischief](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mischief/32/4291_2.png) [@Mischief](https://meta.discourse.org/u/Mischief)\
**Post date:** [2015年十一月16日 12:37 UTC](https://meta.discourse.org/t/change-of-date-in-digest-email-body/34983/7 "2015-11-16T12:37:33Z")

</div>

A huge thank you for making this change. It is a great improvement! …on this occasion the like button just didn’t seem enough!

---

<div class="post-metadata">

**Author:** ![Mischief](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mischief/32/4291_2.png) [@Mischief](https://meta.discourse.org/u/Mischief)\
**Post date:** [2016年一月20日 08:00 UTC](https://meta.discourse.org/t/change-of-date-in-digest-email-body/34983/8 "2016-01-20T08:00:28Z")

</div>

This seems to have reverted back. I’m once again getting digests which are saying: A brief summary of XXXXXX Forum since your last visit on mm-dd-yyyy

Seems like it happened during an update between the 26th of December and the 2nd of January.

---

<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:** [2016年一月20日 09:01 UTC](https://meta.discourse.org/t/change-of-date-in-digest-email-body/34983/9 "2016-01-20T09:01:14Z")

</div>

Hmm I think you are right, @techapj can you check into this please?

---

<div class="post-metadata">

**Author:** ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)\
**Post date:** [2016年一月28日 17:57 UTC](https://meta.discourse.org/t/change-of-date-in-digest-email-body/34983/10 "2016-01-28T17:57:57Z")

</div>

Okay, I made the date (_with year_) in digest email universal

[https://github.com/discourse/discourse/commit/90d41a994acb8b24356fd9b86d9daf01a26bfbef](https://github.com/discourse/discourse/commit/90d41a994acb8b24356fd9b86d9daf01a26bfbef)

(and localized, thanks @gerhard!)

[https://github.com/discourse/discourse/commit/26bba1f48139ead65ccd4a81a88b640e5bc0e906](https://github.com/discourse/discourse/commit/26bba1f48139ead65ccd4a81a88b640e5bc0e906)

---

<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:** [2016年七月28日 11:20 UTC](https://meta.discourse.org/t/change-of-date-in-digest-email-body/34983/11 "2016-07-28T11:20:53Z")

</div>


