Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Different Time Zone per survey

  • virgilio
  • virgilio's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 10 months ago #119628 by virgilio
Different Time Zone per survey was created by virgilio
Hi,

I'm aware of the "Time difference" global setting but I wonder if there is an easy way of having a different time zone for every survey.

I'm planning on running surveys in different countries, and the stats show the server time or the modified one by the "Time difference" global setting, but I would like to have each survey showing the info in their own time.

The first thought is modifying the core of the platform to add another variable per survey so set up the time zone. Then I could apply that variable when saving the data on the database or when displaying the data on the administration (probably is best the first option).

Just wondering if there is a easier solution.

Thanks.
The topic has been locked.
  • gabrieljenik
  • gabrieljenik's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
8 years 10 months ago #119631 by gabrieljenik
Replied by gabrieljenik on topic Different Time Zone per survey
To store timezone info, an alternative would be to store the timezone info on tokens? (if survey uses tokens).

Another alternative is to create a JavaScript that detects the timezone and later store the difference on an equation question).

Thanks

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Checkout our Reporting Solutions and our plugin shop at www.encuesta.biz .

The topic has been locked.
  • virgilio
  • virgilio's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 10 months ago #119632 by virgilio
Replied by virgilio on topic Different Time Zone per survey
Thanks for the quick reply, I guess that solves the issue about how to store the variable, but I still have the problem of how to present the statistics according with the time zone. Or even saving the data according to the timezone.

thanks
The topic has been locked.
  • gabrieljenik
  • gabrieljenik's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
8 years 10 months ago #119637 by gabrieljenik
Replied by gabrieljenik on topic Different Time Zone per survey
I guess that for showing the stats with custom timezone (or saving them) you will need some development.
If you need help in that area, please let me know...

An alternative would be to dump the info to Excel and use a formula there.
But that wouldn't be much automatic.

Cheers

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Checkout our Reporting Solutions and our plugin shop at www.encuesta.biz .

The topic has been locked.
  • gabrieljenik
  • gabrieljenik's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
8 years 10 months ago #119638 by gabrieljenik
Replied by gabrieljenik on topic Different Time Zone per survey
Something extra to add: there is a plugin event that may come handy for storing custom attributes. Please see BeforeSurveySettings and newsurveysetting. Those may help too, although development is needed.

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Checkout our Reporting Solutions and our plugin shop at www.encuesta.biz .

The topic has been locked.
  • virgilio
  • virgilio's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 10 months ago #119675 by virgilio
Replied by virgilio on topic Different Time Zone per survey
Thanks very much for useful tips. I'm comfortable with the development.

Will let you know if I have any more questions.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose