Magento
How to Get a Locale Specific Timestamp and Date in Magento
When developing for multiple store locales it becomes important to ensure you are generating events based on the locale of each store.
You can generate locale based timestamp in Magento by using the following
$currentTimestamp = Mage::getModel('core/date')->timestamp(time()); //Converts server timestamp to locale timestamp echo $date = date('Y-m-d', $currentTimestamp); //Return a formated date