mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
typing: Do time math with numbers, not Date objects.
When typing_status adds 10000 to this value, it would previously
obtain wacky strings like
"Fri Oct 04 2019 16:45:59 GMT-0700 (Pacific Daylight Time)10000"
Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
committed by
Tim Abbott
parent
0dc079def0
commit
caf217d434
@@ -59,7 +59,7 @@ function is_valid_conversation(user_ids_string) {
|
||||
}
|
||||
|
||||
function get_current_time() {
|
||||
return new Date();
|
||||
return new Date().getTime();
|
||||
}
|
||||
|
||||
function notify_server_start(user_ids_string) {
|
||||
|
||||
Reference in New Issue
Block a user