示例#1
0
 function date($ts, $adj = false, $format = true, $timecorrection = false)
 {
     $datePreference = $this->dateFormat($format);
     if ($datePreference == MW_DATE_ISO) {
         return parent::date($ts, $adj, $datePreference, $timecorrection);
     } else {
         if ($adj) {
             $ts = $this->userAdjust($ts, $timecorrection);
         }
         # Adjust based on the timezone setting.
         // 20050310001506 => 10.03.2005
         $date = substr($ts, 6, 2) . '.' . substr($ts, 4, 2) . '.' . substr($ts, 0, 4);
         return $date;
     }
 }