harald-lang / tutor

Tool used to manage tutors, groups, scores and exams for big database systems classes as TUM.
GNU Affero General Public License v3.0
1 stars 4 forks source link

Timetable times change when DST/NON DST #35

Closed mkaufmann closed 6 years ago

mkaufmann commented 8 years ago

See application.rb config.time_zone

kordianbruck commented 6 years ago

Enabled the setting, so that everything is saved to DB in UTC. Active record automatically retrieves/saves records in the correct timezone, once this setting is activated.

We might have to replace some Time.parse calls, but I couldn't find any, at first glance.

More info here: https://www.varvet.com/blog/working-with-time-zones-in-ruby-on-rails/

Important (This might be problematic, with already existing data, as it most probably is not saved in UTC. You'll have to convert it manually once bevor updating to the newest version)