How to change the date format in summary emails?

AI-generated summary

The discussion revolves around changing the date format in summary emails on a Discourse platform. tophee is struggling to change the format from “Month Day” to “Day Month”, despite customizing text content elements containing dates. elijah suggests checking the email template for posts, but zogstrip provides the correct solution by pointing to the digest email template and the short_no_year strings in the user_notifications.rb file, which need to be changed to update the date format in digests.

tophee expresses gratitude and asks about other “hidden” date or time format fields. zogstrip responds by sharing a link to the Discourse locale file, which contains most of the date and time formats. However, tophee finds more date fields in the site settings and questions why the list is longer than the one in the locale file. zogstrip explains that the additional fields are provided by Rails or used in the web app, starting with js..

I believe I have customized all text content elements containing dates but my summary emails don’t seem to be affected by that, they’re still going out with the “Month Day” format instead of “Day Month”. What am I missing? Where is the date format for digest emails set?

I think you want this:

But I’m not 100% sure that it used for digests.

Which is defined in

Which means you’ll have to change the short_no_year strings to change the date format in digests.

「いいね!」 2

Wow, thanks a lot! I missed that one because it doesn’t include “date” as a string. Are there any other “hidden” date or time format fields?

I think most of them are here.

「いいね!」 1

Indeed, I found two more. But if those that you are linking to are “most of them” why is the list of date fields in admin/site-settings/customize/site_texts so much longer?Felt like dozens, but at least 20, I’d say.

The others are the ones provided by rails or used in the web app (those starting with js.).

「いいね!」 2