--- /Users/olivier/Documents/workspace/TYPO3trunk/t3lib/class.t3lib_matchcondition.php (revision 1790) +++ /Users/olivier/Documents/workspace/TYPO3trunk/t3lib/class.t3lib_matchcondition.php (working copy) @@ -251,7 +251,7 @@ case 'hostname': if (t3lib_div::cmpFQDN(t3lib_div::getIndpEnv('REMOTE_ADDR'), $value)) {return true;} break; - // hour, minute, dayofweek, dayofmonth, month + // hour, minute, dayofweek, dayofmonth, month, year, julianday case 'hour': case 'minute': case 'dayofweek': @@ -257,6 +257,8 @@ case 'dayofweek': case 'dayofmonth': case 'month': + case 'year': + case 'julianday': $theEvalTime = $GLOBALS['SIM_EXEC_TIME']; // In order to simulate time properly in templates. switch($key) { case 'hour': $theTestValue = date('H',$theEvalTime); break; @@ -264,6 +266,8 @@ case 'dayofweek': $theTestValue = date('w',$theEvalTime); break; case 'dayofmonth': $theTestValue = date('d',$theEvalTime); break; case 'month': $theTestValue = date('m',$theEvalTime); break; + case 'year': $theTestValue = date('Y',$theEvalTime); break; + case 'julianday': $theTestValue = date('z',$theEvalTime); break; } $theTestValue = intval($theTestValue); // comp