@@ -1966,7 +1966,7 @@ public function logManagerAction($action, $class_key, $item, $userId = null) {
1966
1966
1967
1967
$ ml = $ this ->newObject ('modManagerLog ' );
1968
1968
$ ml ->set ('user ' , (integer ) $ userId );
1969
- $ ml ->set ('occurred ' , strftime ( ' %Y-%m-%d %H:%M:%S ' ));
1969
+ $ ml ->set ('occurred ' , date ( ' Y-m-d H:i:s ' ));
1970
1970
$ ml ->set ('action ' , empty ($ action ) ? 'unknown ' : $ action );
1971
1971
$ ml ->set ('classKey ' , empty ($ class_key ) ? '' : $ class_key );
1972
1972
$ ml ->set ('item ' , empty ($ item ) ? 'unknown ' : $ item );
@@ -2714,7 +2714,7 @@ protected function _log($level, $msg, $target= '', $def= '', $file= '', $line= '
2714
2714
if ($ targetObj == 'FILE ' && $ cacheManager = $ this ->getCacheManager ()) {
2715
2715
$ filename = isset ($ targetOptions ['filename ' ]) ? $ targetOptions ['filename ' ] : 'error.log ' ;
2716
2716
$ filepath = isset ($ targetOptions ['filepath ' ]) ? $ targetOptions ['filepath ' ] : $ this ->getCachePath () . xPDOCacheManager::LOG_DIR ;
2717
- $ cacheManager ->writeFile ($ filepath . $ filename , '[ ' . strftime ( ' %Y-%m-%d %H:%M:%S ' ) . '] ( ' . $ this ->_getLogLevel ($ level ) . $ def . $ file . $ line . ') ' . $ msg . "\n" . ($ this ->getDebug () === true ? '<pre> ' . "\n" . print_r (debug_backtrace (), true ) . "\n" . '</pre> ' : '' ), 'a ' );
2717
+ $ cacheManager ->writeFile ($ filepath . $ filename , '[ ' . date ( ' Y-m-d H:i:s ' ) . '] ( ' . $ this ->_getLogLevel ($ level ) . $ def . $ file . $ line . ') ' . $ msg . "\n" . ($ this ->getDebug () === true ? '<pre> ' . "\n" . print_r (debug_backtrace (), true ) . "\n" . '</pre> ' : '' ), 'a ' );
2718
2718
}
2719
2719
$ this ->sendError ('fatal ' );
2720
2720
}
@@ -2734,7 +2734,7 @@ protected function _log($level, $msg, $target= '', $def= '', $file= '', $line= '
2734
2734
* @param string $line The line number of the file that the message occurs for
2735
2735
*/
2736
2736
protected function _logInRegister ($ register , $ level , $ msg , $ def , $ file , $ line ) {
2737
- $ timestamp = strftime ( ' %Y-%m-%d %H:%M:%S ' );
2737
+ $ timestamp = date ( ' Y-m-d H:i:s ' );
2738
2738
$ messageKey = (string ) time ();
2739
2739
$ messageKey .= '- ' . sprintf ("%06d " , $ this ->_logSequence );
2740
2740
$ message = array (
0 commit comments