Created
April 23, 2015 16:53
-
-
Save lukasklein/6285e9b7596f3719c8ee to your computer and use it in GitHub Desktop.
PHP can't handle Moscow Time
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
+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 |
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
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