I want to create a json string with the dates shown in the iterator. However, when doing that, the json module doesn’t consider the timezone anymore. How can I have the timezone (GMT+03:00) included in all the dates shown in the json string?
Maybe use the formatDate() function. It allows you to specify the timezone as an optional parameter.
L
Thanks!I also thought about that. But this is how the modules look like. Where would I do the formatting?
You can do the formatting in the Create JSON module fields that you have set up (NOT while editing the data structure as shown in your second screenshot).
Thank you! I did this:
But I’m getting only one start-end pair with this method, even though there are two (see iterator module above)
What are you getting out of your iterator? The JSON sees only one input bundle which may be why you only get one bundle output.
L
I’m getting the busy times from my calendar in start-end pairs and I want them in a json string next. Actually the json module does see multiple bundles as shown here:
But after using the formatDate function it creates a json string for only one start-end pair.
Sorry, ignore my previous response. Where is the formatDate used and what are the results? It’s unclear from the screenshots. I have the impression you’re showing the JSON screenshots but we’re not seeing the iterator screenshots. It’s important (for me, anyway) to see the input and the output, not just one or the other.
I
And this is the json module input and output with “formatDate”:
As you can see, it only outputs one start-end pair, when I use the formatDate function.
What I want is the json module to output a json string with all the bundles it receives from the iterator. Right now, the problem is that it’s outputting it in UTC format, which messes up the following flow. I need the dates and times in the json string to include my timezone.
Hi,
OK, I’m not able to make it work. I’m pretty sure the solution is rather simple.
Hopefully one of the ninjas here can make it work.
L
I figured it out! Thanks!
Great! Are you willing to share your solution?
L
Hey I am running into the same issue, can you share your solution? Thank you