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:
parent
62b3c305c3
commit
b6bea86216
@ -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()
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user