@Troy Tessalone above are the configurations I did, but i dont why its not working, i mean after i click published, then a few minutes later, it will send out notifications that there’s a problem in my Zap
You may need to add a Filter step to check that the input values for the Formatter steps exists from the previous Zap steps: https://zapier.com/apps/filter/help
If these values do not have values in the DATA OUT from Zap step 1, then the 2 Formatter steps will not do anything, and thus why the GCal step will result in an error.
Check your Zap Runs history details to see the DATA IN/OUT for each step to help you trace the data flow and troubleshoot: https://zapier.com/app/history/
If you still need help, post screenshots from a Zap Run that had an error that show the DATA IN/OUT for each Zap step.
See screenshot below for where to find the tabs in a Zap step from a Zap Run: DATA IN/OUT
You can achieve the same thing with a code block. After you have established that the dates are there you can set up the code as in the block below.
I use python in the configuration add your Date Start and Date End as input data. Here I have added it as text you can select the data from your webhook
def convert_to_eastern(timestamp): """ Convert a UNIX timestamp to US Eastern Time in the format YYYY-MM-DDTHH:mm:ssZZ.
Args: timestamp (int): UNIX timestamp in seconds.
Returns: str: Formatted date string in US Eastern Time. """ # Convert the UNIX timestamp to UTC datetime utc_time = datetime.datetime.fromtimestamp(timestamp, datetime.timezone.utc)
# Define US Eastern Time offset (Standard Time: UTC-5 hours) eastern_offset = datetime.timedelta(hours=-5) eastern_timezone = datetime.timezone(eastern_offset)
# Convert UTC time to US Eastern Time eastern_time = utc_time.astimezone(eastern_timezone)
# Format the datetime into the desired string format formatted_time = eastern_time.strftime("%Y-%m-%dT%H:%M:%S%z")