-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Date format in text field #8
Comments
american_date only deals with parsing dates, not with display of dates. You would probably have exactly the same issues if you don't use american_date (try removing the use of american_date temporarily to confirm). You probably need to ask on a Rails list why your Rails code isn't working. My guess is your input field isn't using |
You're right. I thought using the gem would change the display of input. On Tue, Apr 2, 2013 at 5:22 PM, Jeremy Evans notifications@github.comwrote:
Sam S. Kong [image: http://www.samanne.com/logo/logo_s.jpg]http://www.designpremise.com/ DESIGN PREMISE *(DBA of Sam & Anne, Inc.) |
I use american_date gem in my rails 3.0 application.
Ruby is 1.9.3
Everything works as expected except for input field.
It shows 2013-04-02 style.
I have the following configuration in initialize directory.
Time::DATE_FORMATS[:default] = "%m/%d/%Y %H:%M:%S"
Date::DATE_FORMATS[:default] = '%m/%d/%Y'
How do I fix it?
Sam
The text was updated successfully, but these errors were encountered: