Skip to content

Instantly share code, notes, and snippets.

@jqr
Created April 6, 2009 01:29
Show Gist options
  • Save jqr/90597 to your computer and use it in GitHub Desktop.
Save jqr/90597 to your computer and use it in GitHub Desktop.
ActiveSupport::CoreExtensions::Time::Conversions::DATE_FORMATS.update(
# 4/5/9
:mdy => proc { |t| t.strftime('%m/%d/%y').gsub /(\b)0/, '\1' }
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment