From 9460c83dd697d0b29ac28f1ea403d896959b38bf Mon Sep 17 00:00:00 2001 From: Sebastian Schuster Date: Wed, 26 Jun 2013 14:43:15 +0200 Subject: [PATCH] Used more beautiful way to create the time string --- app/controllers/meetings_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/meetings_controller.rb b/app/controllers/meetings_controller.rb index f3d737896f..eba09798cd 100644 --- a/app/controllers/meetings_controller.rb +++ b/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