diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2009-11-16 21:16:56 -0800 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2009-11-16 21:16:56 -0800 |
commit | 6151cb6bb26ddf863f09e0990921e86bba44fd92 (patch) | |
tree | 67dbcc5d6f6cdd1898a1f8deadfc61baad2ee6dc /projecttemplates/RelyingPartyLogic/Model.User.cs | |
parent | 828e5bb715ff3ec81e79840a1cb7835bce81120e (diff) | |
download | DotNetOpenAuth-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.User.cs')
-rw-r--r-- | projecttemplates/RelyingPartyLogic/Model.User.cs | 4 |
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() { |