Spaces:
Running on Zero
Running on Zero
Commit ·
979ad70
1
Parent(s): 82c0798
Show server status check time in Taiwan time
Browse filesCo-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
app.py
CHANGED
|
@@ -221,7 +221,9 @@ def server_status():
|
|
| 221 |
lines.append("")
|
| 222 |
for note in notes:
|
| 223 |
lines += [note, ""]
|
| 224 |
-
|
|
|
|
|
|
|
| 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 |
|