This commit is contained in:
Alexandre
2025-03-04 23:02:22 +01:00
parent cc6458b132
commit 9af6c5d7c8
2 changed files with 3 additions and 0 deletions

View File

@@ -116,6 +116,8 @@ if [[ -f /helpers/timedatectl ]]; then
fi
# Correct timezone showing in config.php
# shellcheck disable=SC2016
echo "... updating timezone in config.php"
sed -i -e '/<option disabled selected>/s/selected//' \
-e '/\$current_timezone = trim(shell_exec("timedatectl show --value --property=Timezone"));/d' \
-e "/\$date = new DateTime('now');/i \$current_timezone = trim(shell_exec(\"timedatectl show --value --property=Timezone\"));" \