mirror of https://github.com/zulip/zulip.git
settings_data: Extract TimePreferences.
This type will get used in people.ts in "get_user_time_preferences". Signed-off-by: Zixuan James Li <p359101898@gmail.com>
This commit is contained in:
parent
215f776f0e
commit
04782a48e2
|
@ -18,10 +18,12 @@ export function initialize(current_user_join_date: Date): void {
|
|||
about page_params and settings_config details.
|
||||
*/
|
||||
|
||||
export function get_time_preferences(user_timezone: string): {
|
||||
export type TimePreferences = {
|
||||
timezone: string;
|
||||
format: string;
|
||||
} {
|
||||
};
|
||||
|
||||
export function get_time_preferences(user_timezone: string): TimePreferences {
|
||||
if (user_settings.twenty_four_hour_time) {
|
||||
return {
|
||||
timezone: user_timezone,
|
||||
|
|
Loading…
Reference in New Issue