Created
April 3, 2012 14:16
-
-
Save amwhalen/2292325 to your computer and use it in GitHub Desktop.
Localizing Dates for Archive My Tweets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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