From 3a39a39be8f3ad4c0d9ad7845c3ef50d9462009b Mon Sep 17 00:00:00 2001 From: Kelly Thomas Reardon Date: Thu, 14 May 2026 21:20:00 -0500 Subject: [PATCH] allowing for setting timezone --- Dockerfile | 2 +- Start-DoneTickNotifier.ps1 | 1 + docker-compose.yaml | 3 ++- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index e737354..737b04d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,7 @@ FROM mcr.microsoft.com/powershell:7.5-ubuntu-24.04 USER root RUN apt-get update \ - && apt-get install -y --no-install-recommends ca-certificates \ + && apt-get install -y --no-install-recommends tzdata \ && apt-get dist-upgrade -y \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* diff --git a/Start-DoneTickNotifier.ps1 b/Start-DoneTickNotifier.ps1 index c39a512..10a14ca 100644 --- a/Start-DoneTickNotifier.ps1 +++ b/Start-DoneTickNotifier.ps1 @@ -109,6 +109,7 @@ while ($true) { } Write-Host "Finding next notification time..." + Write-Host "Current time: $(Get-Date)" $nextNotificationTomorrow = $true foreach($time in $notificationTimes) { diff --git a/docker-compose.yaml b/docker-compose.yaml index 98bb9e9..702a23d 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -10,4 +10,5 @@ services: - DONETICKAPIKEY=adminpass # donetick API key - APPRISEWEBHOOKURL=https://apprisehost/notify/config # apprise notification url - APPRISEWEBHOOKTAG=all # apprise notification tag - - NOTIFICATIONTIMES=8,12,17 # hours when notifications will be sent \ No newline at end of file + - NOTIFICATIONTIMES=8,12,17 # hours when notifications will be sent + - TZ=America/Chicago # set timezone from this list: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List \ No newline at end of file