Skip to content

Instantly share code, notes, and snippets.

@objectiveSee
Created October 7, 2013 08:35
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 objectiveSee/6864502 to your computer and use it in GitHub Desktop.
Save objectiveSee/6864502 to your computer and use it in GitHub Desktop.
<?php
date_default_timezone_set('Europe/London');
echo date_default_timezone_get();
echo "\n\n";
echo date("Y-m-d\Th:m:s", time());
echo "\n\n";
exit;
// OUTPUT
Europe/London
2013-10-07T09:10:24
// BUT.... my current time is 34 minutes past the hour!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment