cancel
Showing results for 
Search instead for 
Did you mean: 

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

former_member230091
Participant
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

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-integr...

hope this helps.

thanks and regards,

Praveen T

former_member230091
Participant
0 Kudos

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 Kudos

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

Answers (0)