rwth-acis / mobsos-surveys

A simple survey management service and Web application, being part of the MobSOS toolkit.
Other
7 stars 10 forks source link

Timezone conflict #22

Closed Navidda closed 3 years ago

Navidda commented 3 years ago

Summary

Each survey created is only accessible 2 hours after

Reproduce

  1. Create a new survey and set the start date and time to your current time
  2. Try to participate in the survey (will not work)
  3. Try again two hour later (will work)

Details

The timezone in the nodes is set to UTC. And the service is also not aware of timezone and no conversion is made. The user who is typically in the European timezone sets the start time using her own timezone. The server assumes the time being in UTC, and normally consider it to be two hours later.

Solution

Convert the time received from user into a UTC timestamp.