Tagged: Zend_Date

Magento Logo 0

Display localized dates in Magento

Since Magento uses the Zend Framework you are able to use Zend_Date to easily display localized dates in Magento. So, first create a Zend_Date object based on the locale set in the administration backend: Then simply output your date as localized string using Zend_Date->toString: Us usual, find formating rules in...

Zend_Date and MySQL’s datetime format 5

Zend_Date and MySQL’s datetime format

Despite Zend_Date‘s power and elegance to handle all kinds of different date and time formats, it (still) lacks the ability to cope with MySQL’s datetime formated strings out-of-the-box. Thus, instead of being able to simply do something like one has to manually define MySQL’s datetime syntax, as shown in the...

Zeitsynchronisation von Zend_Date mittels Zend_TimeSync und mehrerer TimeserverSynchronizing Zend_Date using Zend_TimeSync and multiple time servers 0

Zeitsynchronisation von Zend_Date mittels Zend_TimeSync und mehrerer TimeserverSynchronizing Zend_Date using Zend_TimeSync and multiple time servers

This post describes a simple approach to implement time synchronization using Zend_TimeSync for Zend_Date using multiple time servers. First of all you will need to create a new Zend_TimeSync instance, specifying a list of possible time servers. You may use the server pool provided by ntp.org for this purpose. In...