0

I am trying to post date value to backend. But the value is sometimes increment/decrement by 1 in sap gateway. I have tried many possible solutions. But no luck. I am working between two time zones EST and IST. How to reoslve this?

    var syFormat = sap.ui.core.format.DateFormat.getDateInstance({
            pattern: "yyyy-MM-ddTHH:mm:ss",
            UTC : true
        });
        var f = syFormat.format(d);
Karthik
  • 11
  • 1
  • 5

1 Answers1

0

Is there some purpose behind setting UTC to be true? Because due to this, the time is being formatted and parsed according to UTC instead of your local timezone.

You can try to perform the formatting without setting the 'UTC' parameter.

d33a
  • 690
  • 1
  • 14
  • 39