Last active
July 6, 2016 15:49
-
-
Save soen/7ae6c61dcb05ad524a7980efaf7c055a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Decompiled with JetBrains decompiler | |
| // Type: Sitecore.ExperienceEditor.Speak.Ribbon.Requests.PreviewDate.SetDateValueRequest | |
| // Assembly: Sitecore.ExperienceEditor.Speak.Ribbon, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null | |
| namespace Sitecore.ExperienceEditor.Speak.Ribbon.Requests.PreviewDate | |
| { | |
| public class SetDateValueRequest : PipelineProcessorRequest<ValueItemContext> | |
| { | |
| public override PipelineProcessorResponseValue ProcessRequest() | |
| { | |
| string isoDate = this.RequestContext.Value; | |
| Assert.IsNotNull((object) isoDate, "Could not get cookie value for requestArgs:{0}", (object) this.Args.Data); | |
| WebUtil.SetCookieValue(Sitecore.Context.Site.GetCookieKey("sc_date"), DateUtil.IsoDateToUtcIsoDate(isoDate)); | |
| return new PipelineProcessorResponseValue(); | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment