Page 1 of 1

Support for UTC dates in db?

Posted: Wed Apr 27, 2016 7:39 pm
by hfirst
I am storing my dates in the db in utc date/time. I found the below post for converting, but really, wow, do I have to now type that in for every single date field on all my reports?

http://forum.stimulsoft.com/viewtopic.p ... utc#p65328

Is there a feature I've missed or any plans for a feature where I could just toggle a property on the report to automatically have it convert all dates from utc to local for me? Maybe even an override on each date field?

If there are no new features, is there any other better way to globally handle this?

Re: Support for UTC dates in db?

Posted: Thu Apr 28, 2016 11:53 am
by Alex K.
Hello,

Unfortunately, we do not made any changes in that direction.
You can use the previous solution from the post or try to use the convert in the sql query.

Thank you.

Re: Support for UTC dates in db?

Posted: Thu Apr 28, 2016 12:32 pm
by hfirst
That would be a lot of work.

We have a source code license. Could you give me some quick pointers to a possible source code function that all date formatting goes through that I could possibly just fix this in a custom build of the code? Or maybe the routine that is extracting the data from the data source? Hopefully there are just a few key points for dates that I can intercept and do the conversion there.

Re: Support for UTC dates in db?

Posted: Fri Apr 29, 2016 7:27 am
by HighAley
Hello.

You could try to change the DataTime on the Data Source level.
But we need to know what type of Data Source you use to give you an exact advice.

Thank you.

Re: Support for UTC dates in db?

Posted: Mon May 02, 2016 3:06 pm
by hfirst
sqlserver stored procedures

Re: Support for UTC dates in db?

Posted: Tue May 03, 2016 8:46 am
by HighAley
Hello.

Please, look at the RetrieveData method in the Stimulsoft.Report\Dictionary\DataSources\Sql\StiSqlSource.cs file.

Thank you.