How do I pass a UTC timestamp via URL Parameter in Workshop?

I have generated a list of URLs for users to drill into some specific “versions” of a Workshop application, by pre-filling a url parameter with some timestamp coming from a pipeline via Workshop Routing.

For instance MY_FOUNDRY/workspace/module/edit/ri.workshop.main.module.xxx/page?ts=<some_timestamp>

This timestamp seems to be interpreted as a the user’s local time timestamp and not a UTC timestamp. The timestamp I generated are UTC timestamps, so I want those timestamps to be generated as UTC and not local time.

How can I make Workshop to interpret timestamp passed by parameter as a UTC timestamp ?

Note: I could pass the timezone in the timestamp by +00:00 but those URLs were already generated, so it’s “too late” e.g. ?ts=2020-01-01+12%3A30%3A30.000001%2B00%3A00

Hi Vincent, like you mentioned timestamps passed by URL parameters are interpreted in the specified timezone if the timezone is included in the passed timestamp string, or default to user’s local timezone if timezone is not specified in the timestamp.

To parse timestamp strings without timezone as in UTC timezone, you can:

  • switch the URL parameter variable to be a string variable
  • use variable transform’s “cast” operation, it allows you to specify a static timezone that the timestamp string should be interpreted in
1 Like