I encountered a problem when saving the date in the database, I have to save members' payments a month: the display of the UI page is right, but the backup in the database is not fair yet it is the same variable. (UI: 01-01 / 2018 and in database: 31-12-2017) !!!! date on GUI: [http://prntscr.com/jjx8y2]) Date on debug: [http://prntscr.com/jjx8an])
Despite that I used: DateTime now = Clock.Now; I have the same problem
Thank you
2 Answer(s)
-
0
public override void PreInitialize() { //workaround for issue: <a class="postlink" href="https://github.com/aspnet/EntityFrameworkCore/issues/9825">https://github.com/aspnet/EntityFramewo ... ssues/9825</a> //related github issue: <a class="postlink" href="https://github.com/aspnet/EntityFrameworkCore/issues/10407">https://github.com/aspnet/EntityFramewo ... sues/10407</a> AppContext.SetSwitch("Microsoft.EntityFrameworkCore.Issue9825", true);
Configuration.Auditing.IsEnabledForAnonymousUsers = true; <span style="color:#40BF00"> Clock.Provider = ClockProviders.Utc;</span>
This modification must be applied on DigiappsCoreModule in core project Resolve my Pb
-
0
Thanks @annoure :)