From 82dbb7baea6d3ce220a3c16c8f5cfbc76bdaeea2 Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Fri, 5 May 2023 14:16:36 -0400 Subject: [PATCH] Remove extra parentheses in set_datetime --- custom_templates/time.jinja | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/custom_templates/time.jinja b/custom_templates/time.jinja index bec8381..5a94044 100644 --- a/custom_templates/time.jinja +++ b/custom_templates/time.jinja @@ -40,11 +40,11 @@ {% macro set_datetime(hours,minutes,seconds) %} {% if seconds is defined %} -{{ (as_timestamp(now()) + ((((hours * 60) * 60) + (minutes * 60))) + seconds) | int | timestamp_custom('%Y-%m-%d %H:%M:%S') }} +{{ (as_timestamp(now()) + (((hours * 60) * 60) + (minutes * 60)) + seconds) | int | timestamp_custom('%Y-%m-%d %H:%M:%S') }} {% elif minutes is defined %} -{{ (as_timestamp(now()) + (((hours * 60) * 60) + (minutes * 60))) | int | timestamp_custom('%Y-%m-%d %H:%M:%S') }} +{{ (as_timestamp(now()) + ((hours * 60) * 60) + (minutes * 60)) | int | timestamp_custom('%Y-%m-%d %H:%M:%S') }} {% else %} -{{ (as_timestamp(now()) + ((hours* 60) * 60)) | int | timestamp_custom('%Y-%m-%d %H:%M:%S') }} +{{ (as_timestamp(now()) + (hours* 60) * 60) | int | timestamp_custom('%Y-%m-%d %H:%M:%S') }} {% endif %} {% endmacro %}