Exemple #1
0
 /**
  * Builds time bag
  * 
  * @return \News\Service\TimeBag
  */
 public function build()
 {
     // With defaults
     $listFormat = $this->config->getTimeFormatInList();
     $postFormat = $this->config->getTimeFormatInPost();
     $announceFormat = $listFormat;
     $panelFormat = 'm/d/Y';
     return new TimeBag($listFormat, $postFormat, $announceFormat, $panelFormat);
 }