I juste upgraded my web api to .net6 using EFCore and NPGSQL (Postgres).
I had to Set a Switch for my code to work:
AppContext.SetSwitch("Npgsql.EnableLegacyTimestampBehavior", true);
Now EFCore Creates my DateTime fields to 'timestamp with time zone' which breaks everything.
How can I get the old 'timestamp without time zone' for DateTime Types?
Should I remove the LegacyTimestamp switch?
Thanks for your help!