Don't pad H/M/S from date

Caused occasional script failures, was it trying to interpret as octal?
This commit is contained in:
Michael Bradley 2025-03-27 01:12:14 -04:00
parent 76930fe033
commit 5c753ff5ec
Signed by: MichaelBradley
SSH key fingerprint: SHA256:cj/YZ5VT+QOKncqSkx+ibKTIn0Obg7OIzwzl9BL8EO8

View file

@ -9,7 +9,7 @@ SUNSET_END="$((23 * 60 * 60))" # When to reach min temperature
DAY_TEMP="6000" # Display temperature (K) to use in full daylight
NIGHT_TEMP="2400" # Display temperature (K) to use at night
CURRENT="$(((($(date '+%H') * 60) + $(date '+%M')) * 60 + $(date '+%S')))" # Time in seconds since start of day
CURRENT="$(((($(date '+%-H') * 60) + $(date '+%-M')) * 60 + $(date '+%-S')))" # Time in seconds since start of day
# Performs a calculation using an argument containing an input string
calc() {