I have a default locale set in environment.rb as de (German).
I also see all the error messages in German, so the locale is perceived by the server. But when I try to print the date with strftime as follows:
some_date.strftime('%B, %y')
It prints in English ( January, 11 ), and not the expected German ( Januar, 11 ).
How to print the date according to the default standard?
ruby ruby-on-rails localization strftime rails-i18n
rangalo Jan 04 2018-11-11T00: 00Z
source share