From 704db56925b866b78a96a34e2519af688594215c Mon Sep 17 00:00:00 2001 From: "Matt K. Fu" Date: Wed, 5 Jun 2013 18:01:57 +0800 Subject: [PATCH] fix bulletin data having 8 hours difference. --- app/helpers/orbit_form_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/orbit_form_helper.rb b/app/helpers/orbit_form_helper.rb index 30133f199..df7bffa60 100644 --- a/app/helpers/orbit_form_helper.rb +++ b/app/helpers/orbit_form_helper.rb @@ -8,7 +8,7 @@ module OrbitFormHelper options[:icon_date] ||= 'icons-calendar' options[:icon_clear] ||= 'icons-cross-3' options[:input_class] ||= 'input-large' - options[:value] ||= options[:object][method] if options[:object] && options[:object][method] + options[:value] ||= options[:object].send(method) if options[:object] && options[:object][method] case options[:picker_type] when 'date' content_tag :div, :id => options[:id], :class => options[:class] do