Bandaid postgres time mapping behavior.
Handling of date time in npgsql was changed in 6.0 (breaking) with an opt-out for now.
This commit is contained in:
@@ -15,6 +15,11 @@ namespace Content.Server.Database
|
||||
{
|
||||
}
|
||||
|
||||
static PostgresServerDbContext()
|
||||
{
|
||||
AppContext.SetSwitch("Npgsql.EnableLegacyTimestampBehavior", true);
|
||||
}
|
||||
|
||||
public DbSet<PostgresServerBan> Ban { get; set; } = default!;
|
||||
public DbSet<PostgresServerUnban> Unban { get; set; } = default!;
|
||||
public DbSet<PostgresPlayer> Player { get; set; } = default!;
|
||||
|
||||
Reference in New Issue
Block a user