Skip to content

Commit

Permalink
fix bad timezone output (cosm)
Browse files Browse the repository at this point in the history
Signed-off-by: Markus Storm <[email protected]>
  • Loading branch information
mstormi authored Sep 9, 2024
1 parent 20f43d1 commit 6dc0ffd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/system.bash
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ timezone_setting() {
elif [[ -n $timezone ]]; then
echo -n "$(timestamp) [openHABian] Setting timezone based on openhabian.conf... "
if ! running_in_docker && ! running_on_github; then
if cond_redirect timedatectl set-timezone "$timezone"; then echo "OK ($(cat /etc/timezone))"; else echo "FAILED"; return 1; fi
if cond_redirect timedatectl set-timezone "$timezone"; then echo "OK ($(timedatectl | grep zone | cut -d: -f2))"; else echo "FAILED"; return 1; fi
else
echo "SKIPPED"
fi
Expand Down

0 comments on commit 6dc0ffd

Please sign in to comment.