Written by Giles Bennett
Depending on the locality settings, 'Magento time' can be different from your server's time, and both can be different from the actual time where you are. If you need to find out in a hurry what time Magento thinks it is, then the following script just asks it to tell you by outputting it to the screen.
Create a file using the code below, upload it to your web root folder via FTP, then hit it in your browser and you're done!
<?php require_once 'app/Mage.php'; umask(0); Mage::app(); echo date("Y-m-d H:i:s", Mage::getModel('core/date')->timestamp(time())); ?>