Skip to content

Instantly share code, notes, and snippets.

@theinventor
Created June 22, 2015 16:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save theinventor/4ad754d1fe53479f9c3e to your computer and use it in GitHub Desktop.
Save theinventor/4ad754d1fe53479f9c3e to your computer and use it in GitHub Desktop.
idnexworkrer:
account.setup_locale
(USA) I18n.l(t.created_at.to_date) => "6/22/15"
(UK) I18n.l(t.created_at.to_date) => "22-06-2015"
def localized_created_at
end
def localized_due_date
end
index(dates): created_at, updated_at, due_date,
index(strings): localized_created_at, localized_due_date
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment