Skip to content

Instantly share code, notes, and snippets.

@lukasklein
Created April 23, 2015 16:53
Show Gist options
  • Save lukasklein/6285e9b7596f3719c8ee to your computer and use it in GitHub Desktop.
Save lukasklein/6285e9b7596f3719c8ee to your computer and use it in GitHub Desktop.
PHP can't handle Moscow Time
+02:00 # Correct
+04:00 # Wrong, it has been set to UTC+3 permanently on 26 October 2014: http://sputniknews.com/russia/20141026/194606015.html
date_default_timezone_set('Europe/Berlin');
echo date('P') . " # Correct \n";
date_default_timezone_set('Europe/Moscow');
echo date('P') . " # Wrong, it has been set to UTC+3 permanently on 26 October 2014: http://sputniknews.com/russia/20141026/194606015.html";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment