Skip to main content

Command Palette

Search for a command to run...

postgresql timestamp without timezone

Published
1 min read
postgresql timestamp without timezone
G

gua memang serious cakap lu, gua serious 24 jam. baik di jamban ,di meja makan atau bersenggama . serius...dohhh

hari tu masa aku dah migrate database guna asp.net core, aku try run web application tiba2 aku dapat error related dengan timestamp something pasal support UTC jer. so bila aku check2 rupanya aku kena enable kan setswitch dalam DbContext projek aku. aku sajer tulis benda ni kat sini sebagai nota. sayang beb kalau nak pakai nanti dah lupa. faham2 la dah tua ni hehhehe .

sorry lah aku lupa nak save error message tu.

btw ni codenya

       public ApplicationDbContext(DbContextOptions<ApplicationDbContext> options)
           : base(options)
       {
           AppContext.SetSwitch("Npgsql.EnableLegacyTimestampBehavior", true);
       }

More from this blog

G

gua serius

18 posts

serius dohhhh!