
Newsletter: datetime_select localized format
Reported by Priit Tamboom | January 19th, 2009 @ 11:21 AM
The datetime_select for the publish date should use localized date formats.
Comments and changes to this ticket
-
Priit Tamboom January 30th, 2009 @ 01:40 PM
- Assigned user changed from Priit Tamboom to Sven Fuchs
- State changed from new to open
At the moment, I changed to datetime_select using current timezone time, however I notice User might need zone field (I'll open ticket for that):
f.datetime_select :deliver_at, :default => Time.zone.now, :prefix => "deliver_at", :discard_year => true
Hoever, I'm not sure if datetime_select really supports localization. From rails code:
def datetime_selector(options, html_options) datetime = value(object) || default_datetime(options) options = options.dup options[:field_name] = @method_name options[:include_position] = true options[:prefix] ||= @object_name options[:index] ||= @auto_index options[:datetime_separator] ||= ' — ' options[:time_separator] ||= ' : ' DateTimeSelector.new(datetime, options.merge(:tag => true), html_options) end
Looks like localization is missing?
-
Marko Seppä March 17th, 2009 @ 05:01 PM
- Milestone cleared.
-
Marko Seppä March 19th, 2009 @ 03:34 PM
- Milestone set to Release 0.1.3
-
Marko Seppä March 31st, 2009 @ 10:43 AM
- Milestone cleared.
-
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<p>Cutting edge cms, blog, wiki, forum ... plattform.</p>
<p>Find the code on <a href="http://github.com/svenfuchs/adva_cms/tree/master">GitHub: adva cms</a></p>
<p>Part of the business application framework <a href="http://www.advabest.org/">adva best</a>.</p>