In the parseDate()
function, how can I specify the time zone of the received time? By default, it assumes the time zone of the profile, but if I receive a different time zone, how can I define the correct time zone for it?
Hello! Welcome to the Make Community!
You can set it with an optional 3rd parameter.
See here for details: parseDate
Benjamin
Like @Benjamin_from_Make said, add a 3rd parameter like so:
parseDate(
now
;
DD/MM/YYY
; Europe/Amsterdam)
I know but this parameter defines which time zone the function will return
I’m saying that I receive from my system a time in a time zone that is not the time zone of the profile
ParseDate is used to get the date in the timezone used to set it. So if the date comes from uk for instance, you can set Europe/London, if it’s US East coast, you can set America/New_York.
Then, if you use formatDate, in that case only, Make will default to its timezone, so if it’s different to what you need, you can force a different timezone.
But again, if you received a date/time from a server located in a different timezone, you will be able to « tell » what timezone it was in.
If you don’t, it will not properly interpret.
If ever it’s not clear, can you give an example of the data you receive, and how you want it to be?