I am currently trying to use a “Create JSON” node to convert data retrieved from Google Calendar into an API-friendly JSON to respond to a specific webhook I have. I need the time to be in the correct time zone as the time will be used to feed into an LLM, so I prefer if it is already formatted correctly as LLMs tend to get confused if I don’t format it properly.
However, whenever I use the “Create JSON” node or a “Transform to JSON” node to create a JSON string for the webhook, the node drops the timezone detail and the LLM thinks that the time is 11 hours earlier than it should be.
Here is the input:
and here is the output:
Is there a way to always ensure that the time is in the correct timezone?
Thank you.