Used more beautiful way to create the time string

pull/6827/head
Sebastian Schuster 12 years ago
parent f994763604
commit 9460c83dd6
  1. 2
      app/controllers/meetings_controller.rb

@ -111,7 +111,7 @@ class MeetingsController < ApplicationController
start_time_4i = params[:meeting].delete(:"start_time(4i)")
start_time_5i = params[:meeting].delete(:"start_time(5i)")
begin
timestring = start_date + " " + start_time_4i + ":" + start_time_5i; # + " " + zone;
timestring = "#{start_date} #{start_time_4i}:#{start_time_5i}"
if(User.current.time_zone.nil?)
time = Time.parse(timestring) #using the system time zone
else

Loading…
Cancel
Save