summaryrefslogtreecommitdiffstats
path: root/projecttemplates/RelyingPartyLogic/Model.IssuedAccessToken.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2009-11-16 21:16:56 -0800
committerAndrew Arnott <andrewarnott@gmail.com>2009-11-16 21:16:56 -0800
commit6151cb6bb26ddf863f09e0990921e86bba44fd92 (patch)
tree67dbcc5d6f6cdd1898a1f8deadfc61baad2ee6dc /projecttemplates/RelyingPartyLogic/Model.IssuedAccessToken.cs
parent828e5bb715ff3ec81e79840a1cb7835bce81120e (diff)
downloadDotNetOpenAuth-6151cb6bb26ddf863f09e0990921e86bba44fd92.zip
DotNetOpenAuth-6151cb6bb26ddf863f09e0990921e86bba44fd92.tar.gz
DotNetOpenAuth-6151cb6bb26ddf863f09e0990921e86bba44fd92.tar.bz2
Fixed unhandled exception for returning users introduced by UTC date/time enforcement code that was recently introduced.
Diffstat (limited to 'projecttemplates/RelyingPartyLogic/Model.IssuedAccessToken.cs')
-rw-r--r--projecttemplates/RelyingPartyLogic/Model.IssuedAccessToken.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/projecttemplates/RelyingPartyLogic/Model.IssuedAccessToken.cs b/projecttemplates/RelyingPartyLogic/Model.IssuedAccessToken.cs
index d966baf..25d983b 100644
--- a/projecttemplates/RelyingPartyLogic/Model.IssuedAccessToken.cs
+++ b/projecttemplates/RelyingPartyLogic/Model.IssuedAccessToken.cs
@@ -66,8 +66,8 @@ namespace RelyingPartyLogic {
}
partial void OnExpirationDateUtcChanging(DateTime? value) {
- if (value.HasValue && value.Value.Kind != DateTimeKind.Utc) {
- throw new ArgumentException("DateTime must be given in UTC time.");
+ if (value.HasValue) {
+ Utilities.VerifyThrowNotLocalTime(value.Value);
}
}
}