date() == gmdate() after WP 3.0
-
I created a simple script to illustration my issue.
echo "date(): " . date("Y-m-d H:i:s"); echo "\n"; echo "gmdate(): " . gmdate("Y-m-d H:i:s"); echo "\n\n"; include_once('../public_html/peopleofpublictransit.com/wp-load.php'); echo "date(): " . date("Y-m-d H:i:s"); echo "\n"; echo "gmdate(): " . gmdate("Y-m-d H:i:s");
—————————–
Output
—————————–
date(): 2010-06-22 15:54:01
gmdate(): 2010-06-22 20:54:01date(): 2010-06-22 20:54:02
gmdate(): 2010-06-22 20:54:02
—————————–
/Output
—————————–Notice that date() and gmdate() will be equal after I include wp-load.php.
This was not true before 3.0
- The topic ‘date() == gmdate() after WP 3.0’ is closed to new replies.