38471-vm/repair_timezone.py
2026-03-17 13:23:16 +00:00

10 lines
240 B
Python

import os
file_path = 'index.php'
with open(file_path, 'r', encoding='utf-8') as f:
content = f.read()
# Fix the syntax error
search_bad = 'echo "<option value=\"$tz\" $selected>$tz</option>";'
replace_good = 'echo "<option value=\\\