Replies: 1 comment 1 reply
-
|
It uses ToDateTimeKind function to convert date to "utc or local" which uses date time kind attribute on field. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi team Serenity!
I have a database that's using DateTime.UtcNow as a default for InsertDate.
Migration is something like this:
This InsertDate has a constraint:
I noticed that the dates in the update column are using DateTime.Now, so my InsertDate vs UpdateDate in my table doesn't make much sense.
Serenity/src/services/RequestHandlers/IntegratedFeatures/InsertUpdateLog/InsertUpdateLogBehavior.cs
Line 26 in b26ba30
Should we be using UtcNow rather?
I understand that this may affect existing applications, so perhaps an option to .Now instead of .UtcNow?
What are your thoughts?
Cheers!
Edward
Beta Was this translation helpful? Give feedback.
All reactions