This commit is contained in:
albert 2024-06-14 10:59:23 +09:00
parent 28f3612839
commit de6a818147
Signed by: albert
GPG key ID: 3895DD267CA11BA9

View file

@ -52,9 +52,9 @@
systemctl --user start get-theme-times.service systemctl --user start get-theme-times.service
fi fi
echo "Getting dates:" echo "Getting dates:"
SUNRISE=`date -d \`cat /tmp/wttr.sunrise\` +%s` SUNRISE=`cat /tmp/wttr.sunrise | date +%s`
echo "Sunrise: $SUNRISE" echo "Sunrise: $SUNRISE"
SUNSET=`date -d \`cat /tmp/wttr.sunset\` +%s` SUNSET=`cat /tmp/wttr.sunset | date +%s`
echo "Sunset: $SUNSET" echo "Sunset: $SUNSET"
CURRENT=`date +%s` CURRENT=`date +%s`
echo "Current: $CURRENT" echo "Current: $CURRENT"