From 67ab8c925d6d2b2ed31d9ba21e2761104ffdc247 Mon Sep 17 00:00:00 2001 From: MoisesMachado Date: Wed, 14 May 2008 16:42:15 +0000 Subject: [PATCH] ActionItem129: fixed the bug where floating points numbers gets , instead of . when talking to the database --- app/controllers/application.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/application.rb b/app/controllers/application.rb index ca2fb69..b35ff6f 100644 --- a/app/controllers/application.rb +++ b/app/controllers/application.rb @@ -99,11 +99,11 @@ class ApplicationController < ActionController::Base # now set the system locale system_locale = '%s.utf8' % locale begin - Locale.setlocale(Locale::LC_ALL, system_locale) + Locale.setlocale(Locale::LC_TIME, system_locale) rescue Exception => e # fallback to C RAILS_DEFAULT_LOGGER.info("Locale #{system_locale} not available, falling back to the portable \"C\" locale (consider installing the #{system_locale} locale in your system)") - Locale.setlocale(Locale::LC_ALL, 'C') + Locale.setlocale(Locale::LC_TIME, 'C') end end -- libgit2 0.21.2