summaryrefslogtreecommitdiffstats
path: root/projecttemplates/RelyingPartyLogic/Model.AuthenticationToken.cs
diff options
context:
space:
mode:
Diffstat (limited to 'projecttemplates/RelyingPartyLogic/Model.AuthenticationToken.cs')
-rw-r--r--projecttemplates/RelyingPartyLogic/Model.AuthenticationToken.cs8
1 files changed, 2 insertions, 6 deletions
diff --git a/projecttemplates/RelyingPartyLogic/Model.AuthenticationToken.cs b/projecttemplates/RelyingPartyLogic/Model.AuthenticationToken.cs
index f629bf6..d6564da 100644
--- a/projecttemplates/RelyingPartyLogic/Model.AuthenticationToken.cs
+++ b/projecttemplates/RelyingPartyLogic/Model.AuthenticationToken.cs
@@ -28,15 +28,11 @@
}
partial void OnLastUsedUtcChanging(DateTime value) {
- if (value.Kind != DateTimeKind.Utc) {
- throw new ArgumentException("DateTime must be given in UTC time.");
- }
+ Utilities.VerifyThrowNotLocalTime(value);
}
partial void OnCreatedOnUtcChanging(DateTime value) {
- if (value.Kind != DateTimeKind.Utc) {
- throw new ArgumentException("DateTime must be given in UTC time.");
- }
+ Utilities.VerifyThrowNotLocalTime(value);
}
}
}