UX: improves dates display in emails (#6805)

This commit is contained in:
Joffrey JAFFEUX
2019-01-16 12:53:41 +01:00
committed by GitHub
parent 79eb1b8e16
commit 9703fa2abc
5 changed files with 47 additions and 27 deletions

View File

@ -3,3 +3,4 @@ en:
discourse_local_dates_enabled: "Enable the discourse-local-dates feature. This will add support to local timezone aware dates in posts using the [date] element."
discourse_local_dates_default_formats: "Frequently used date time formats, see: <a target='_blank' rel='noopener' href='https://momentjs.com/docs/#/parsing/string-format/'>momentjs string format</a>"
discourse_local_dates_default_timezones: "Default list of timezones, must be a valid <a target='_blank' rel='noopener' href='https://en.wikipedia.org/wiki/List_of_tz_database_time_zones'>TZ</a>"
discourse_local_dates_email_format: "Format used to display a date in emails."

View File

@ -1,4 +1,7 @@
plugins:
discourse_local_dates_email_format:
default: "YYYY-MM-DDTHH:mm:ss[Z]"
client: true
discourse_local_dates_enabled:
default: true
client: true