/** * Returns a string for sql request * * @param string|Zend_Locale $locale OPTIONAL Locale for parsing input * @return string */ public function toSQLString($locale = null) { self::setTimezone(Axis_Locale::getDefaultTimezone()); return $this->toString('yyyy-MM-dd HH:mm:ss', 'iso', $locale); }
protected function _initLocale() { $this->bootstrap('FrontController'); //set default timezone affect on date() and Axis_Date Axis_Locale::setTimezone(Axis_Locale::getDefaultTimezone()); $front = $this->getResource('FrontController'); $front->registerPlugin(new Axis_Controller_Plugin_Locale(), 20); }