예제 #1
0
 /**
  * Prepare the initial value to the date formatter object
  */
 private static function initDateTimeObj()
 {
     if (DateUtil::$dateTimeObj == null) {
         DateUtil::$dateTimeObj = new DateTime(date('Y-m-d H:i:s e'));
         DateUtil::$dateTimeObj->setTimeZone(new DateTimeZone(DateUtil::$TIMEZONE));
     }
 }