mirror of
https://github.com/zulip/zulip.git
synced 2025-11-07 15:33:30 +00:00
people: Remove final use of date-fns-tz.
date-fns-tz does not handle daylight saving time correctly, and can be replaced with modern browser APIs. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
b897be76b4
commit
8a875b119f
@@ -43,7 +43,7 @@ type DateOrTimeFormat = DateFormat | TimeFormat | DateWithTimeFormat;
|
||||
// for any formats that display the name for a month/weekday, but
|
||||
// possibly in more subtle ways for languages with different
|
||||
// punctuation schemes for date and times.
|
||||
function get_format_options_for_type(type: DateOrTimeFormat): Intl.DateTimeFormatOptions {
|
||||
export function get_format_options_for_type(type: DateOrTimeFormat): Intl.DateTimeFormatOptions {
|
||||
const is_twenty_four_hour_time = user_settings.twenty_four_hour_time;
|
||||
|
||||
const time_format_options: Intl.DateTimeFormatOptions = is_twenty_four_hour_time
|
||||
|
||||
Reference in New Issue
Block a user