1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-22 12:15:36 +01:00

Run jobs in local timezone (#808)

* Run jobs in local timezone

* Run jobs in local timezone
This commit is contained in:
Mart124 2020-07-04 04:48:40 +02:00 committed by GitHub
parent 62b3c305c3
commit b6bea86216
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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()

View File

@ -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()