mirror of
https://github.com/discourse/discourse.git
synced 2025-06-11 08:08:32 +08:00
FEATURE: allow customizing default timezone for email. (#32964)
1. Changes default email format to llll (eg: Tue, May 8, 2018 2:00 AM) from 2018-05-08T00:00:00Z UTC which is not nice on the eyes 2. Adds `discourse_local_dates_email_timezone` which allows configuring default timezone in emails 3. Improved help text on site settings (format / timezone) --------- Co-authored-by: Gary Pendergast <gary@pento.net>
This commit is contained in:
@ -1,7 +1,10 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
RSpec.describe "Local Dates" do
|
||||
before { freeze_time DateTime.parse("2018-11-10 12:00") }
|
||||
before do
|
||||
SiteSetting.discourse_local_dates_email_format = "YYYY-MM-DDTHH:mm:ss[Z] z"
|
||||
freeze_time DateTime.parse("2018-11-10 12:00")
|
||||
end
|
||||
|
||||
it "should work without timezone" do
|
||||
post = Fabricate(:post, raw: <<~MD)
|
||||
|
Reference in New Issue
Block a user