Fix #6962. AS::TimeWithZone#strftime responds incorrectly to %:z and %::z format strings. #7703

Merged
merged 1 commit into from Sep 20, 2012

Projects

None yet

3 participants

@kennyj
Contributor
kennyj commented Sep 19, 2012

Please see #6962.

AS::TWZ#strftime's behavior isn't equals to Time#strftime.
It seems %:z and %::z format are ignored.

Owner

@kennyj great. Could you add a CHANGELOG entry?

@kennyj thanks for the fix. i was planning to do something similar, but felt it was a little brittle wrt changes to the time format string in future versions of Ruby.

Contributor
kennyj commented Sep 20, 2012

@rafaelfranca I'll submit PR to 3-2-stable soon, because this is bug, and I'm going to add a CHANGELOG entry to 3-2-stable.
Thus I want to be merged this PR as it is.

@rafaelfranca rafaelfranca merged commit 883fa8f into rails:master Sep 20, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment