scanner/chat: Show local time in verify result

This commit is contained in:
Fam Zheng 2025-03-01 13:15:43 +00:00
parent 5557efe0a5
commit 923534ca12

View File

@ -284,8 +284,8 @@ Page({
show_result_page(serial_code) {
this.busy = true;
if (this.data.ai_chat_mode) {
// YYYY-MM-DD HH:MM:SS
var time = new Date().toISOString().replace('T', ' ').replace('Z', '');
// YYYY-MM-DD HH:MM:SS local time
var time = new Date().toLocaleString();
wx.redirectTo({
url: '/pages/chat/chat?serial_code=' + serial_code + '&time=' + time,
});