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
I get a "invalid time zone" error on line Time.use_zone(current_user.time_zone, &block) in application controller as the code calendar.time_zone.split('/').last.gsub('_', ' ') in sessions controller strips of America from America/New_York. If I remove .split('/').last.gsub('_', ' ') all is good. Is that an appropriate fix and should I create a PR or not?
The text was updated successfully, but these errors were encountered:
Yes please, according to the documentation, google returns the timezone Formatted as an IANA Time Zone Database name, e.g. "Europe/Zurich" And Time.find_zone! already expects this format, maybe we need to fallback to app time zone? this line needs to be adjusted as well, and lastly, we might need to create a presenter to show in the UI a formatted timezone name
I get a "invalid time zone" error on line
Time.use_zone(current_user.time_zone, &block)
in application controller as the codecalendar.time_zone.split('/').last.gsub('_', ' ')
in sessions controller strips of America from America/New_York. If I remove.split('/').last.gsub('_', ' ')
all is good. Is that an appropriate fix and should I create a PR or not?The text was updated successfully, but these errors were encountered: