From 0de3fdf7f3356b8785342c0326133d9ca0f5301a Mon Sep 17 00:00:00 2001 From: albert Date: Tue, 18 Jun 2024 13:05:03 +0900 Subject: [PATCH] Testing --- nixos/common/desktops/plasma6/default.nix | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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"