Solved
How do you get the current time of people based on their time zone?
I would like to get the current time of my participants based on their time zone so that I can use "branches" in survey flow to direct them to different pages/blocks. I need some support in developing codes to do this. Thanks!
Best answer by TomG
@echongsk,
You can use JS to get the local time, save the hour to an embedded variable, and use it for branching.
```
Qualtrics.SurveyEngine.addOnload(function() {
var d = new Date();
Qualtrics.SurveyEngine.setEmbeddedData("hour", d.getHours());
});
```
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.

I don't how exactly should the condition look like, but you could, for example, extract hours from it in JavaScript (put it to some question which will be shown before you apply your condition) and send them to an embedded data field. Do not forget to