mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 15:03:34 +00:00
timerender: Use an explicit time zone for all rendering.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
33e335dbd1
commit
06c2b89525
@@ -1,4 +1,3 @@
|
||||
import {isSameDay} from "date-fns";
|
||||
import $ from "jquery";
|
||||
import _ from "lodash";
|
||||
|
||||
@@ -34,6 +33,7 @@ import * as stream_color from "./stream_color";
|
||||
import * as stream_data from "./stream_data";
|
||||
import * as sub_store from "./sub_store";
|
||||
import * as submessage from "./submessage";
|
||||
import {is_same_day} from "./time_zone_util";
|
||||
import * as timerender from "./timerender";
|
||||
import * as user_topics from "./user_topics";
|
||||
import * as util from "./util";
|
||||
@@ -42,7 +42,11 @@ function same_day(earlier_msg, later_msg) {
|
||||
if (earlier_msg === undefined || later_msg === undefined) {
|
||||
return false;
|
||||
}
|
||||
return isSameDay(earlier_msg.msg.timestamp * 1000, later_msg.msg.timestamp * 1000);
|
||||
return is_same_day(
|
||||
earlier_msg.msg.timestamp * 1000,
|
||||
later_msg.msg.timestamp * 1000,
|
||||
timerender.display_time_zone,
|
||||
);
|
||||
}
|
||||
|
||||
function same_sender(a, b) {
|
||||
|
||||
Reference in New Issue
Block a user