diff options
Diffstat (limited to 'public')
-rw-r--r-- | public/common/play.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/public/common/play.js b/public/common/play.js index 2fe3e2e..25f237a 100644 --- a/public/common/play.js +++ b/public/common/play.js @@ -193,7 +193,7 @@ function save_chat() { window.localStorage.setItem(chat.key, chat.log) } -function update_chat(chat_id, utc_date, user, message) { +function update_chat(chat_id, raw_date, user, message) { function format_time(date) { let mm = date.getMinutes() let hh = date.getHours() @@ -215,7 +215,7 @@ function update_chat(chat_id, utc_date, user, message) { } if (chat_id > chat.log) { chat.log = chat_id - let date = new Date(utc_date + "Z") + let date = new Date(raw_date * 1000) let day = date.toDateString() if (day !== chat.last_day) { add_date_line(day) |