Local time based on location

#1

Is there a functionality that gives me the local time based on a datetime at a specific location (i.e lat / long) ?

0 Likes

#2

if you know the timeZone of the location, then you can use convertToTimeZone("America/Los_Angeles", now())

We currently do not have a way in the expression engine to return local time based on lat long. You should file that as an enhancement ticket and we’d do it soon.

0 Likes

#3

What about when I have local time + location, how can I get UTC time?

0 Likes