From 20ef3d367d9d80569daeebc52e39d8970ee93c6d Mon Sep 17 00:00:00 2001 From: donker Date: Thu, 26 Sep 2019 23:21:04 +0200 Subject: [PATCH] Store date in "round-trip" format --- .../Services/SiteSettingsController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Extensions/Content/Dnn.PersonaBar.Extensions/Services/SiteSettingsController.cs b/Extensions/Content/Dnn.PersonaBar.Extensions/Services/SiteSettingsController.cs index 083183fe0..2cc681bf9 100644 --- a/Extensions/Content/Dnn.PersonaBar.Extensions/Services/SiteSettingsController.cs +++ b/Extensions/Content/Dnn.PersonaBar.Extensions/Services/SiteSettingsController.cs @@ -1653,7 +1653,7 @@ public HttpResponseMessage ResetTermsAgreement(ResetTermsAgreementRequest reques return Request.CreateErrorResponse(HttpStatusCode.Unauthorized, AuthFailureMessage); } UserController.ResetTermsAgreement(pid); - PortalController.UpdatePortalSetting(pid, "DataConsentTermsLastChange", DateTime.Now.ToString("u"), true); + PortalController.UpdatePortalSetting(pid, "DataConsentTermsLastChange", DateTime.Now.ToString("O", CultureInfo.InvariantCulture), true); return Request.CreateResponse(HttpStatusCode.OK, new { Success = true }); } catch (Exception exc)