broccoli0510 Claude Opus 5.5 commited on
Commit
979ad70
·
1 Parent(s): 82c0798

Show server status check time in Taiwan time

Browse files

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -221,7 +221,9 @@ def server_status():
221
  lines.append("")
222
  for note in notes:
223
  lines += [note, ""]
224
- lines.append(f"檢查時間:{time.strftime('%Y-%m-%d %H:%M:%S')}")
 
 
225
  return "\n".join(lines)
226
 
227
 
 
221
  lines.append("")
222
  for note in notes:
223
  lines += [note, ""]
224
+ # Space 主機使用 UTC,轉成台灣時間(UTC+8)顯示
225
+ tw_now = time.strftime("%Y-%m-%d %H:%M:%S", time.gmtime(time.time() + 8 * 3600))
226
+ lines.append(f"檢查時間:{tw_now}(台灣時間)")
227
  return "\n".join(lines)
228
 
229