내 커뮤니티 업적 표시줄을 확대합니다.

Submissions are now open for the 2026 Adobe Experience Maker Awards

Mark Solution

활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.

해결됨

Local Timezone to UTC

Avatar

Level 2

Hi All,

I'm building a custom adobe campaign classic function to convert current date to UTC. But irrespective of what method I use, I'm getting nowhere. Getting below errors.

Custom_SQL_Function.jpgCustom_SQL_Function_Error.jpg

Where am I going wrong? Can we convert Local time to UTC in postgres?

Note: I can do it using JS activity but won't be able to create a custom function.

I have also tried with: select Timestamp with '2019-07-01 10:30:00-05' AT TIME ZONE 'UTC'.

Thanks,

Vidya Shivakumar

1 채택된 해결책 개

Avatar

정확한 답변 작성자:
Level 2

Hi All,

Thanks for your inputs.Below code worked:

LocalToUTCSql.jpg

원본 게시물의 솔루션 보기

4 답변 개

Avatar

Level 4

Hi vidyas77336264​,
Cant you directly use the option found in properties of workflow.

Regards.

Avatar

Level 2

Hi asariaaara​, Thanks for the suggestion.

What do you mean options in Workflow properties? Timezone field in the General Tab?

This won't help either, when you use GetDate() function it still gives you the DB time which is set to my local time zone.

Thanks,

Vidya

Avatar

Level 4

Hi,
Not a pro at SQL, but i guess timestamp will itself reflect timezone of system i.e. current timezone.

Maybe you should simply try without "with timezone Now()".

Let me know about the solution.  

Regards.

Avatar

정확한 답변 작성자:
Level 2

Hi All,

Thanks for your inputs.Below code worked:

LocalToUTCSql.jpg