Skip to content

Instantly share code, notes, and snippets.

@pke
Created April 14, 2010 10:48
Show Gist options
  • Save pke/365673 to your computer and use it in GitHub Desktop.
Save pke/365673 to your computer and use it in GitHub Desktop.
post_date = post_date.gsub('Today', Time.now.strftime('%d.%m.%Y'))
post_date = post_date.gsub('Yesterday', 1.day.ago.strftime('%d.%m.%Y'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment