Skip to content

Instantly share code, notes, and snippets.

@amwhalen
Created April 3, 2012 14:16
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 amwhalen/2292325 to your computer and use it in GitHub Desktop.
Save amwhalen/2292325 to your computer and use it in GitHub Desktop.
Localizing Dates for Archive My Tweets
<?php
// config.php
// place this at the top of your config.php file
date_default_timezone_set('Europe/Berlin');
setlocale(LC_TIME, 'de_DE');
// index.php
// replace the date() function with a localized version (around lines 48 and 150)
// OLD: $date = date('F Y', $time);
$date = strftime('%B %Y', $time);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment