mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
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:
parent
d31434336b
commit
7d63f4340c
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue