Changing the date string used in CakeLog::write() to use full 4 digit year

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3875 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
phpnut 2006-11-17 03:04:45 +00:00
parent d31434336b
commit 7d63f4340c

View file

@ -48,9 +48,9 @@ class CakeLog{
* @return boolean Success * @return boolean Success
*/ */
function write($type, $msg) { function write($type, $msg) {
$filename=LOGS . $type . '.log'; $filename = LOGS . $type . '.log';
$output=date('y-m-d H:i:s') . ' ' . ucfirst($type) . ': ' . $msg . "\n"; $output = date('Y-m-d H:i:s') . ' ' . ucfirst($type) . ': ' . $msg . "\n";
$log=new File($filename); $log = new File($filename);
return $log->append($output); return $log->append($output);
} }
} }