You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now, the time always gets parsed in UTC time. What if you have users in different time zones with times displayed in their local time? There would be no way to out of the box specify which time zone the time they selected was in. The model code has to now convert this to a local time. It would be great to be able to specify this within the field itself.
The text was updated successfully, but these errors were encountered:
So this is really just a replacement to the time_select helper. If you've got user accounts that are in specific timezones, what you should really be doing is setting the time zone in a before_filter so that everything in that user's request is set in their timezone.
That will set the Time.zone for the whole request, then replace it with the server one once it's finished. I forget the reason for doing it this way exactly since it has been a while. I've recorded the time_zone from the user as part of the registration form.
You might be taking a completely different approach to this however, so let me know!
Right now, the time always gets parsed in UTC time. What if you have users in different time zones with times displayed in their local time? There would be no way to out of the box specify which time zone the time they selected was in. The model code has to now convert this to a local time. It would be great to be able to specify this within the field itself.
The text was updated successfully, but these errors were encountered: