summaryrefslogtreecommitdiffstats
path: root/projecttemplates/RelyingPartyLogic/Model.User.cs
diff options
context:
space:
mode:
Diffstat (limited to 'projecttemplates/RelyingPartyLogic/Model.User.cs')
-rw-r--r--projecttemplates/RelyingPartyLogic/Model.User.cs4
1 files changed, 1 insertions, 3 deletions
diff --git a/projecttemplates/RelyingPartyLogic/Model.User.cs b/projecttemplates/RelyingPartyLogic/Model.User.cs
index 51fd38b..b47cd2f 100644
--- a/projecttemplates/RelyingPartyLogic/Model.User.cs
+++ b/projecttemplates/RelyingPartyLogic/Model.User.cs
@@ -19,9 +19,7 @@ namespace RelyingPartyLogic {
}
partial void OnCreatedOnUtcChanging(DateTime value) {
- if (value.Kind != DateTimeKind.Utc) {
- throw new ArgumentException("DateTime must be given in UTC time.");
- }
+ Utilities.VerifyThrowNotLocalTime(value);
}
partial void OnEmailAddressChanged() {