mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 02:41:13 +08:00
DEV: Update moment and moment-timezone (#26089)
* Bump the moment-timezone version in package.json * update yarn lock * bump moment * bin/rails javascript:update * npx yarn-deduplicate * update the spec (not sure which tz changed exactly but there's a 1 hour difference now for year 2018 and earlier 🤷♂️) --------- Co-authored-by: Anton Morgunov <45741336+anmorgunov@users.noreply.github.com> Co-authored-by: Anton Morgunov <anton@ischemist.com>
This commit is contained in:
@ -46,13 +46,13 @@ RSpec.describe PrettyText do
|
||||
it "works with multiple timezones" do
|
||||
cooked =
|
||||
PrettyText.cook(
|
||||
'[date=2018-05-08 timezone="Europe/Paris" timezones="America/Los_Angeles|Pacific/Auckland"]',
|
||||
'[date=2023-05-08 timezone="Europe/Paris" timezones="America/Los_Angeles|Pacific/Auckland"]',
|
||||
)
|
||||
cooked_mail =
|
||||
generate_html(
|
||||
"2018-05-07T22:00:00Z UTC",
|
||||
date: "2018-05-08",
|
||||
email_preview: "2018-05-07T22:00:00Z UTC",
|
||||
"2023-05-07T22:00:00Z UTC",
|
||||
date: "2023-05-08",
|
||||
email_preview: "2023-05-07T22:00:00Z UTC",
|
||||
timezone: "Europe/Paris",
|
||||
timezones: "America/Los_Angeles|Pacific/Auckland",
|
||||
)
|
||||
|
Reference in New Issue
Block a user