Forum: Ruby on Rails DhtmlCalendarHelper

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Herman M. (Guest)
on 2009-03-22 22:06
Hi RoR community,

for my webapp I need the german date format.

To display the german date format like 31.12.2009, I implemented in the
environment.rb following:

ActiveSupport::CoreExtensions::Date::Conversions::DATE_FORMATS.merge!(
  :default => ' %d.%m.%Y '
)

If I use the DhtmlCalendarHelper "calendar_field" the date in edit-mode
is diplayed in german date-format, like 21.11.1990.

If I use the DhtmlCalendarHelper "calendar_box" the date in edit-mode
falls back to american date-format, like 1990-11-21.

Do somebody knows why?

Thanks ahead for every answer!

Regs,

hermann
This topic is locked and can not be replied to.