fix: back button alignment, mock bind flow, and timezone bug

- nav-back: add text-align:left to override page-header's center
- ble-connect mock: call bind API first to get fresh token before
  confirm, instead of relying on potentially stale URL params
- utils.js: use local time instead of UTC for toMysqlDate, fixing
  timezone mismatch with MySQL NOW() that caused bind tokens to
  appear immediately expired
这个提交包含在:
Guoguo
2026-04-29 04:54:42 -07:00
父节点 1f55e430c8
当前提交 2578c06a74
修改 3 个文件,包含 20 行新增21 行删除
+2 -1
查看文件
@@ -2,7 +2,8 @@ function toMysqlDate(value) {
if (!value) return null
const d = new Date(value)
if (Number.isNaN(d.getTime())) return null
return d.toISOString().slice(0, 19).replace('T', ' ')
const pad = n => String(n).padStart(2, '0')
return d.getFullYear() + '-' + pad(d.getMonth() + 1) + '-' + pad(d.getDate()) + ' ' + pad(d.getHours()) + ':' + pad(d.getMinutes()) + ':' + pad(d.getSeconds())
}
function formatDate(date) {