The goal is to get the call date from the webhook trigger. The call date is in unix timestamp and it is following sydney date and time already. I have used different prompts like
1. Extract the 'Call Date' from the webhook payload (e.g., 2025-04-10T08:00:00.000Z).
2. Determine the correct Sydney timezone offset based on this date:
If the date falls between the first Sunday in October and the first Sunday in April (inclusive), the offset is +11:00. Otherwise, the offset is +10:00.
3. Take the original timestamp's date and time part (e.g., 2025-04-10T08:00:00.000).
4. Replace the trailing Z with the determined offset (+10:00 or +11:00).
5. The final output should be in the format YYYY-MM-DDTHH:mm:ss.sss+HH:mm. For the example date 2025-04-10T08:00:00.000Z, the output should be 2025-04-10T08:00:00.000+10:00 because April 10th is outside the DST period.
But lindy is converting the date and time instead of just changing the format and that is where the problem occurs to notion,