This project is archived and is in readonly mode.
text_field tag has incorrect time
-
Geoff Buesing
- State changed from new to wontfix
Hmm, I agree that's not what you'd expect to see, but it would be pretty hard to fix this, given that text_field is built with the _before_type_cast version of the attribute.
But even if we could fix this, I'm skeptical that the default presentation would be valuable -- the user would see a value like this:
2008-11-20 17:35:09 -0600... a db-like output, with an offset string -- I think you'd want friendlier formatting for the user.
You can currently achieve this via text_field_tag -- something like:
text_field_tag "post[publish_at]", @post.publish_at.to_s(:my_friendly_format) -
David Parker
Thanks for checking this out Geoff.