diff --git a/nixos/common/desktops/plasma6/default.nix b/nixos/common/desktops/plasma6/default.nix index b28fc735..25a240ea 100644 --- a/nixos/common/desktops/plasma6/default.nix +++ b/nixos/common/desktops/plasma6/default.nix @@ -54,11 +54,9 @@ systemctl --user start get-theme-times.service fi echo "Getting dates:" - sr=$(cat /tmp/wttr.sunrise) - ss=$(cat /tmp/wttr.sunset) - SUNRISE=`date -d $sr +%s` + SUNRISE=`date --date"$(cat /tmp/wttr.sunset)" +%s` echo "Sunrise: $SUNRISE" - SUNSET=`date -d $ss +%s` + SUNSET=`date --date="$(cat /tmp/wttr.sunset)" +%s` echo "Sunset: $SUNSET" CURRENT=`date +%s` echo "Current: $CURRENT"