Expand my Community achievements bar.

Applications for the Community Advisor Program Class of 2025 are NOW OPEN – Apply Today!

Computing the sending date with timezone

Avatar

Level 2

Hello,

I am following this tutorial, but come to the conclusion that even though the tutorial shows segmentation with timezone set to CET (UTC+01), it sends the communication at UTC, so one hour later than expected.
The documentation shows that ToDateTime does *not* take timezones into account, for that one needs to use ToDateTimeWithTimezone. How does the string need to look? ToDateTimeWithTimezone("2024-11-29 09:45:00+01"), as by ISO-standard or ToDateTimeWithTimezone("2024-11-29 09:45:00", "Europe/Stockholm") as by the description in the documentation?

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Reply

Avatar

Community Advisor

@tabea1 I believe both should work. Try something along these lines,

Screenshot 2025-01-22 at 1.40.38 PM.png

Thanks, Sathees