{"action":"closed","issue":{"url":"https://api.github.com/repos/OrchardCMS/Orchard/issues/3974","labels_url":"https://api.github.com/repos/OrchardCMS/Orchard/issues/3974/labels{/name}","comments_url":"https://api.github.com/repos/OrchardCMS/Orchard/issues/3974/comments","events_url":"https://api.github.com/repos/OrchardCMS/Orchard/issues/3974/events","html_url":"https://github.com/OrchardCMS/Orchard/issues/3974","id":68215770,"number":3974,"title":"Projections: InBetween for offset dates is incorrectly handing values","user":{"login":"orchardbot","id":11788683,"avatar_url":"https://avatars.githubusercontent.com/u/11788683?v=3","gravatar_id":"","url":"https://api.github.com/users/orchardbot","html_url":"https://github.com/orchardbot","followers_url":"https://api.github.com/users/orchardbot/followers","following_url":"https://api.github.com/users/orchardbot/following{/other_user}","gists_url":"https://api.github.com/users/orchardbot/gists{/gist_id}","starred_url":"https://api.github.com/users/orchardbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orchardbot/subscriptions","organizations_url":"https://api.github.com/users/orchardbot/orgs","repos_url":"https://api.github.com/users/orchardbot/repos","events_url":"https://api.github.com/users/orchardbot/events{/privacy}","received_events_url":"https://api.github.com/users/orchardbot/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/OrchardCMS/Orchard/labels/resolved","name":"resolved","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/OrchardCMS/Orchard/milestones/17","html_url":"https://github.com/OrchardCMS/Orchard/milestones/Orchard%201.7.2","labels_url":"https://api.github.com/repos/OrchardCMS/Orchard/milestones/17/labels","id":1065775,"number":17,"title":"Orchard 1.7.2","description":"Please read our release notes for Orchard 1.7.2:\n[url:http://docs.orchardproject.net/Documentation/Orchard-1-7-2-Release-Notes]\n\n*Please* do not post questions as reviews. Questions should be posted in the Discussions tab, where they will usually get promptly responded to. If you post a question as a review, you will pollute the rating, and you won't get an answer.","creator":{"login":"orchardbot","id":11788683,"avatar_url":"https://avatars.githubusercontent.com/u/11788683?v=3","gravatar_id":"","url":"https://api.github.com/users/orchardbot","html_url":"https://github.com/orchardbot","followers_url":"https://api.github.com/users/orchardbot/followers","following_url":"https://api.github.com/users/orchardbot/following{/other_user}","gists_url":"https://api.github.com/users/orchardbot/gists{/gist_id}","starred_url":"https://api.github.com/users/orchardbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orchardbot/subscriptions","organizations_url":"https://api.github.com/users/orchardbot/orgs","repos_url":"https://api.github.com/users/orchardbot/repos","events_url":"https://api.github.com/users/orchardbot/events{/privacy}","received_events_url":"https://api.github.com/users/orchardbot/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":51,"state":"closed","created_at":"2015-04-13T19:41:12Z","updated_at":"2015-04-13T23:10:58Z","due_on":"2013-11-19T08:00:00Z","closed_at":"2015-04-13T19:41:12Z"},"comments":2,"created_at":"2013-09-24T18:37:59Z","updated_at":"2015-04-13T23:10:58Z","closed_at":"2015-04-13T23:10:58Z","body":"__VMakaev__ created:\r\nhttps://orchard.codeplex.com/workitem/20146\r\n\r\n\nCreate a filter for DateTime field on a projection\nSpecify InBetween operator\n\nEnter -1 for the Min date and 2 for the Max date.\n\n\nUpon executing a preview Orchards crashes:\r\n\n2013-09-24 21:15:51,158 [51] Orchard.Exceptions.DefaultExceptionPolicy - An unexpected exception was caught\r\nMicrosoft.CSharp.RuntimeBinder.RuntimeBinderException: The best overloaded method match for 'int.Parse(string)' has some invalid arguments\r\n   at CallSite.Target(Closure , CallSite , Type , Object )\r\n   at Orchard.Projections.FilterEditors.Forms.DateTimeFilterForm.GetFilterPredicate(Object formState, String property, DateTime now, Boolean asTicks)\r\n   at Orchard.Projections.FieldTypeEditors.DateTimeFieldTypeEditor.GetFilterPredicate(Object formState)\r\n   at Orchard.Projections.Providers.Filters.ContentFieldsFilter.ApplyFilter(FilterContext context, IFieldTypeEditor fieldTypeEditor, String storageName, Type storageType, ContentPartDefinition part, ContentPartFieldDefinition field)\r\n   at Orchard.Projections.Providers.Filters.ContentFieldsFilter.<>c__DisplayClassb.<>c__DisplayClassd.<Describe>b__7(FilterContext context)\r\n   at Orchard.Projections.Services.ProjectionManager.<GetContentQueries>d__2f.MoveNext()\r\n   at Orchard.Projections.Services.ProjectionManager.GetContentItems(Int32 queryId, Int32 skip, Int32 count)\r\n   at Orchard.Projections.Controllers.AdminController.Preview(Int32 id)\r\n   at lambda_method(Closure , ControllerBase , Object[] )\r\n   at System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters)\r\n   at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary2 parameters)\r   at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary2 parameters)\r\n   at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass13.<InvokeActionMethodWithFilters>b__10()\r\n   at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func1 continuation)\r   at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass13.<>c__DisplayClass15.<InvokeActionMethodWithFilters>b__12()\r   at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func1 continuation)\r\n   at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass13.<>c__DisplayClass15.<InvokeActionMethodWithFilters>b__12()\r\n   at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation)\n"}}