Make sure Job date times are stored in the database as UTC. This is required if using Postgres or you will get an exception with a message of “Cannot write DateTime with Kind=Unspecified to PostgreSQL type 'timestamp with time zone', only UTC is supported.”.
This commit is contained in:
@ -17,7 +17,7 @@ namespace Oqtane.Infrastructure
|
||||
Name = "Purge Job";
|
||||
Frequency = "d"; // daily
|
||||
Interval = 1;
|
||||
StartDate = DateTime.ParseExact("03:00", "H:mm", null, System.Globalization.DateTimeStyles.None); // 3 AM
|
||||
StartDate = DateTime.ParseExact("03:00", "H:mm", null, System.Globalization.DateTimeStyles.AssumeLocal).ToUniversalTime(); // 3 AM
|
||||
IsEnabled = true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user