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