Skip to Content
0

How to convert the time in SAP HCI/CPI from UTC to other timezone

Mar 05 at 02:35 PM

154

avatar image

Hello Guys,

I am using below Date now function in my SAP CPI integration.

${date:now:dd-MM-yyyy HH:mm z}

It works fine and able to get current time and date. But by default I am getting value in UTC timezone.

Note: I am expecting value should be in EET/IST timezone

Do anyone have idea how we can convert it to other timezone.?

Regards.

Deva

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Praveen Tirumareddy
Mar 05 at 03:58 PM
0

Hi Devraj,

Similar requirement has been achieved using script.

https://blogs.sap.com/2018/02/28/using-local-time-zone-for-target-file-name-on-cloud-platform-integration/

hope this helps.

thanks and regards,

Praveen T

Show 2 Share
10 |10000 characters needed characters left characters exceeded

Hi Praveen,

I guess your groovy script code works only for few cities (couldn't get local time for many cities of different countries)

Anyway thanks for your answer.

Regards,

Deva

0

Hello Deva,

Please let me know if there is something that is stopping your development, will try to find out solution for the same.

thanks and regards,

Praveen T

0