Hi,
Using the HTML report viewer I am generating the html/javascript from an aspx class and am adding date parameters so that the resulting Javascript looks like this:
$("#reportViewer1")    .telerik_ReportViewer({                 // The URL of the service which will serve reports.        // The URL corresponds to the name of the controller class (ReportsController).        // For more information on how to configure the service please check http://www.telerik.com/help/reporting/telerik-reporting-rest-conception.html.        serviceUrl: "api/reports/",        // The URL for the report viewer template. The template can be edited -        // new functionalities can be added and unneeded ones can be removed.        // For more information please check http://www.telerik.com/help/reporting/html5-report-viewer-templates.html.        templateUrl: 'ReportViewer/templates/telerikReportViewerTemplate-9.2.15.930.html',        //ReportSource - report description        reportSource: {            // The report can be set to a report file name (trdx report definition)             // or CLR type name (report class definition).            report: "ReasonsForDemurrageBasic",            // Parameters name value dictionary            parameters: {                restrictClientAccountCompanyKey : 1,portKey : 2,dateFormat : "dd/MM/yy",startDate : new Date("2015/01/01"),endDate : new Date("2015/11/01"),suppressTitles : false            }        },
So you can see that I am setting up to date parameters without times. I want these dates to be passed back when executing the report as is, I don't want any timezone conversion. When the report is run, using Fiddler I can see that the request is:
{"report":"ReasonsForDemurrageBasic","parameterValues":{"restrictClientAccountCompanyKey":1,"portKey":2,"dateFormat":"dd/MM/yy","startDate":"2015-01-01T05:00:00.000Z","endDate":"2015-11-01T05:00:00.000Z","suppressTitles":false}}
You can see that it has assumed that I want the dates converted (with an assumption of a time if 0:0:0 in my local timezone) into UTC. I realise that the trend now is for JSON to write dates in this format with the timezone, but is there a way without hacking telerikReportViewer-9.2.15.930.min.js to stop it adjusting the time? "startDate":"2015-01-01T00:00:00.000Z" would be ok for example in this case.
Thanks,
Scott
