|
|
@ -49,7 +49,7 @@ class MeetingsController < ApplicationController |
|
|
|
if @meeting.save |
|
|
|
if @meeting.save |
|
|
|
text = l(:notice_successful_create) |
|
|
|
text = l(:notice_successful_create) |
|
|
|
if User.current.time_zone.nil? |
|
|
|
if User.current.time_zone.nil? |
|
|
|
link = l(:notice_timezone_missing, :zone => Time.now.zone) |
|
|
|
link = l(:notice_timezone_missing, :zone => Time.zone) |
|
|
|
text += " #{view_context.link_to(link, {:controller => :my, :action => :account},:class => "link_to_profile")}" |
|
|
|
text += " #{view_context.link_to(link, {:controller => :my, :action => :account},:class => "link_to_profile")}" |
|
|
|
end |
|
|
|
end |
|
|
|
flash[:notice] = text.html_safe |
|
|
|
flash[:notice] = text.html_safe |
|
|
@ -112,13 +112,7 @@ class MeetingsController < ApplicationController |
|
|
|
start_time_5i = params[:meeting].delete(:"start_time(5i)") |
|
|
|
start_time_5i = params[:meeting].delete(:"start_time(5i)") |
|
|
|
begin |
|
|
|
begin |
|
|
|
timestring = "#{start_date} #{start_time_4i}:#{start_time_5i}" |
|
|
|
timestring = "#{start_date} #{start_time_4i}:#{start_time_5i}" |
|
|
|
if(User.current.time_zone.nil?) |
|
|
|
time = Time.zone.parse(timestring) |
|
|
|
time = Time.parse(timestring) #using the system time zone |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
Time.use_zone(User.current.time_zone) do |
|
|
|
|
|
|
|
time = Time.zone.parse(timestring) #using the user-set time zone |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
params[:meeting][:start_time] = time |
|
|
|
params[:meeting][:start_time] = time |
|
|
|
rescue ArgumentError |
|
|
|
rescue ArgumentError |
|
|
|
params[:meeting][:start_time] = nil |
|
|
|
params[:meeting][:start_time] = nil |
|
|
|