I have an object with a created_at date and if i just display 
(to_date.to_s) that in a template, it displays correctly as "2013-01-09" 

But, if i use i18n as in <%= I18n.l object.created_at.to_date %>  it 
displays as 9. helmikuuta 2013  (february)
(that's finish locale, but i just checked i have the latest)

What is even more interesting is that this behavior only occurs after a 
page refresh and hence after. The first time a page shows it is correct !
And in the console it is always correct.

I am quite sure this is not a i18n bug, but i would appreciate any help in 
finding it. Ie what kind of calls can be done to make this behavior happen, 
or could it be some locale file anyway that only gets loaded after the page 
shows.

Actually i just noticed by accident that touching the rails locale file 
will make it show the correct date once again in development. I guess the 
fi.yml gets reloaded but then overwritten again. How oh how.

The template code has not changed and it did work fine with rails 3.2.9, 
before upgrading rails to 3.2.11 .

much obliged

Torsten 

-- 
You received this message because you are subscribed to the Google Groups 
"rails-i18n" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/rails-i18n/-/9e6Bx1zr7MMJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rails-i18n?hl=en.

Reply via email to