Skip to main content
added 307 characters in body
Source Link
Tushar Kumawat
  • 518
  • 1
  • 5
  • 15

Yes, It is Time Zone issue only. In your post request, you need to convert date to GMT+00:00 format and then save it to salesforce.

DateTime departureDateTimeGMTFormat = Datetime.newInstanceGmt( DeptDate.year(), DeptDate.month(), DeptDate.day(), integer.Valueof(DeptTime.substring(0, 2)),integer.Valueof( DeptTime.substring(2, 4)),00 );

DeptDateTime = departureDateTimeGMTFormat.format( 'yyyy.MM.dd HH:mm' , 'GMT+5:30');

Yes, It is Time Zone issue only. In your post request, you need to convert date to GMT+00:00 format and then save it to salesforce.

Yes, It is Time Zone issue only. In your post request, you need to convert date to GMT+00:00 format and then save it to salesforce.

DateTime departureDateTimeGMTFormat = Datetime.newInstanceGmt( DeptDate.year(), DeptDate.month(), DeptDate.day(), integer.Valueof(DeptTime.substring(0, 2)),integer.Valueof( DeptTime.substring(2, 4)),00 );

DeptDateTime = departureDateTimeGMTFormat.format( 'yyyy.MM.dd HH:mm' , 'GMT+5:30');
Source Link
Tushar Kumawat
  • 518
  • 1
  • 5
  • 15

Yes, It is Time Zone issue only. In your post request, you need to convert date to GMT+00:00 format and then save it to salesforce.