Skip to content

Instantly share code, notes, and snippets.

@AMHOL
Created November 9, 2012 22:56
Show Gist options
  • Save AMHOL/4048870 to your computer and use it in GitHub Desktop.
Save AMHOL/4048870 to your computer and use it in GitHub Desktop.
Date::DATE_FORMATS[:default] = '%d/%m/%Y'
# if you want to change the format of Time display then add the line below
Time::DATE_FORMATS[:default]= '%d/%m/%Y %H:%M:%S'
# if you want to change the DB date format.
Time::DATE_FORMATS[:db]= '%d/%m/%Y %H:%M:%S'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment