From b6bea86216793cf5021b37a7518f671f05741888 Mon Sep 17 00:00:00 2001 From: Mart124 <37041094+Mart124@users.noreply.github.com> Date: Sat, 4 Jul 2020 04:48:40 +0200 Subject: [PATCH] Run jobs in local timezone (#808) * Run jobs in local timezone * Run jobs in local timezone --- src/Admin/Jobs/JobsHostedService.cs | 2 +- src/Billing/Jobs/JobsHostedService.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Admin/Jobs/JobsHostedService.cs b/src/Admin/Jobs/JobsHostedService.cs index 5bbb451074..71fbcb312a 100644 --- a/src/Admin/Jobs/JobsHostedService.cs +++ b/src/Admin/Jobs/JobsHostedService.cs @@ -32,7 +32,7 @@ namespace Bit.Admin.Jobs TimeZoneInfo.FindSystemTimeZoneById("America/New_York"); if (_globalSettings.SelfHosted) { - timeZone = TimeZoneInfo.Utc; + timeZone = TimeZoneInfo.Local; } var everyTopOfTheHourTrigger = TriggerBuilder.Create() diff --git a/src/Billing/Jobs/JobsHostedService.cs b/src/Billing/Jobs/JobsHostedService.cs index 4dc5d3b64b..706517856b 100644 --- a/src/Billing/Jobs/JobsHostedService.cs +++ b/src/Billing/Jobs/JobsHostedService.cs @@ -31,7 +31,7 @@ namespace Bit.Billing.Jobs TimeZoneInfo.FindSystemTimeZoneById("America/New_York"); if (_globalSettings.SelfHosted) { - timeZone = TimeZoneInfo.Utc; + timeZone = TimeZoneInfo.Local; } var everyDayAtNinePmTrigger = TriggerBuilder.Create()