I’m very sorry, I’ve been struggling with the YouTube publish at time setting for several days and still can’t figure it out. Can anyone help me? Thank you very much.
I want my Youtube publish at to be set to publish the task after N hours of execution,But no matter how I set it up, I am always confused by the results.
Detailed description:
Task 1:
Task schedule time: March 13, 2025 1:00 PM (GMT-4)
Youtube module Publish at setting: {{formatDate(addHours(now; 6); YYYY-MM-DDTHH:mm:ss.s; Etc/UTC)}}Z
Youtube module execution log,Input: Publish at March 13, 2025 7:00 PM (No time zone information)
Youtube module execution log,Output: Publish at March 13, 2025 3:00 AM (No time zone information)
why the output was: March 13, 2025 3:00 AM ??? ( Input - Output = 16 Hours)
Task 2:
Task schedule time: March 13, 2025 07:00 AM (GMT-4)
Youtube module Publish at setting: {{formatDate(addHours(now;5);YYYY-MM-DDTHH:mm:ss.s;Etc/UTC)}}Z
Youtube module execution log,Input: Publish at March 13, 2025 12:00 PM (No time zone information)
Youtube module execution log,Output: Publish at March 13, 2025 8:00 AM (No time zone information)
Why the output was: March 13, 2025 8:00 AM ???( Input - Output = 4 Hours)
BTW:
{{formatDate(addHours(now;5);YYYY-MM-DDTHH:mm:ss.s;Etc/UTC)}}Z
This is just to match the output format: 2016-06-20T17:26:44.356Z
{{formatDate(addHours(now;5);YYYY-MM-DDTHH:mm:ss.sZ;Etc/UTC)}}
I have tried this format, but I didn’t get the result I wanted.