Skip to Content
0
Former Member
May 11, 2016 at 10:36 PM

DateRangeSelection is retrieving records for the previous day

235 Views

Hi!

I have a DateRangeSelection, where the user can select a range between date A and date B.

However, I'm having a odd behaviour on the link generated to query the SAP Gateway. For you to understand and going straight to the point, on the example bellow I selected a range between data A and A (the same day):

RANGE: 06.05.2016 - 06.05.2016 (there is no Time Picker at this page).

RESULT: selects all the records for the previous day.

  • If I check the Network (using Chrome Debugger) I can find this:
    • .../sap/opu/odata/SAP/Z.._SRV/Report_OperacoesSet?$filter=(FSAVD ge datetime'2016-05-05T23:00:00' and FSAVD le datetime'2016-05-05T23:00:00').
  • If I debug the variable picked, it selects the correct value (2016-05-06T00:00:00)

Do you have any idea how to fix this?

Thanks in advance!

Hugo