On Apr 2, 2011, at 12:39 PM, ctientcheu wrote:

> How do I store and retreive Zend_Date variable

Zend_Date is not a variable.
Here is a good read on the subject.
http://framework.zend.com/manual/en/zend.date.html

> I am interested in saving especially the GMT time in order to maintain
> consistency with local through the entire application.

$date_default_timezone_set('America/New_York');
$date = Zend_Date::now();

or

$date = Zend_Date();
$date->setTimezone('America/New_York');

> 
> I am using Doctrine 2 and MySQL

You may want to read all of the Zend Date info linked above, there is a portion 
on date creation that has some interesting info about how Zend_Date handles 
differences between various RDB date output and the time it takes to convert 
such values.
--
List: fw-general@lists.zend.com
Info: http://framework.zend.com/archives
Unsubscribe: fw-general-unsubscr...@lists.zend.com


Reply via email to