Commit 67ab8c925d6d2b2ed31d9ba21e2761104ffdc247

Authored by MoisesMachado
1 parent 7895b41c

ActionItem129: fixed the bug where floating points numbers gets , instead of . w…

…hen talking to the database


git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1795 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
app/controllers/application.rb
... ... @@ -99,11 +99,11 @@ class ApplicationController < ActionController::Base
99 99 # now set the system locale
100 100 system_locale = '%s.utf8' % locale
101 101 begin
102   - Locale.setlocale(Locale::LC_ALL, system_locale)
  102 + Locale.setlocale(Locale::LC_TIME, system_locale)
103 103 rescue Exception => e
104 104 # fallback to C
105 105 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)")
106   - Locale.setlocale(Locale::LC_ALL, 'C')
  106 + Locale.setlocale(Locale::LC_TIME, 'C')
107 107 end
108 108 end
109 109  
... ...