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());
});
```
View originalLeave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.