-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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#to_formatted_s
bug
#25251
Comments
Can reproduce on master. |
We are currently using `%e` which adds a space before the result if the digit is a single number. This leads to strings like `February 2, 2016` which is undesireable. I've opted to replace with 0 padding instead of removing the padding entirely, to preserve compatibility for those relying on the fact that the width is constant, and to be consistent with time formatting. Fixes #25251.
@sgrif What about using EDIT: Although |
I specifically mentioned the reasoning in the commit message. |
@sgrif My fault! I did miss that last sentence! However, in the case of the more human-readable |
Hi all, it seems like a little bug:
Expected behavior
System configuration
Rails version: 4.2.6
Ruby version: 2.2.3
The text was updated successfully, but these errors were encountered: