mirror of
https://github.com/zulip/zulip.git
synced 2025-11-07 07:23:22 +00:00
timerender: Avoid dateStyle option missing in Safari < 14.1.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
4f06fc6a84
commit
23ab667bbb
@@ -55,7 +55,12 @@ export function get_format_options_for_type(type: DateOrTimeFormat): Intl.DateTi
|
||||
};
|
||||
|
||||
const weekday_format_options: Intl.DateTimeFormatOptions = {weekday: "long"};
|
||||
const full_format_options: Intl.DateTimeFormatOptions = {dateStyle: "full"};
|
||||
const full_format_options: Intl.DateTimeFormatOptions = {
|
||||
weekday: "long",
|
||||
year: "numeric",
|
||||
month: "long",
|
||||
day: "numeric",
|
||||
};
|
||||
|
||||
const dayofyear_format_options: Intl.DateTimeFormatOptions = {day: "numeric", month: "short"};
|
||||
const dayofyear_year_format_options: Intl.DateTimeFormatOptions = {
|
||||
|
||||
Reference in New Issue
Block a user