Implementing a php (date("w")) element in a condition with Server Connect

Hello,

I’m building a php action file where I want to set the weekday as a trigger. I specifically want to use date(“w”)== 0 (or 6) in my condition to eliminate weekends in my logic, what would be the path to implement this?
What I tried below seems not to work:
image

Okay, it seems we can’t really run php snippets on server connect, so for this use case I put NOW_UTC in a variable, formatted so I could extract the day and run the condition on that.