File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 6363
6464 'timezone ' => null ,
6565
66+ /*
67+ |--------------------------------------------------------------------------
68+ | Log Viewer datetime format.
69+ |--------------------------------------------------------------------------
70+ | The format used to display timestamps in the UI.
71+ |
72+ */
73+
74+ 'datetime_format ' => 'Y-m-d H:i:s ' ,
75+
6676 /*
6777 |--------------------------------------------------------------------------
6878 | Log Viewer route middleware.
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ public function toArray($request): array
2525 'level_name ' => $ level ->getName (),
2626 'level_class ' => $ level ->getClass ()->value ,
2727
28- 'datetime ' => $ this ->datetime ?->toDateTimeString( ),
28+ 'datetime ' => $ this ->datetime ?->format( config ( ' log-viewer.datetime_format ' , ' Y-m-d H:i:s ' ) ),
2929 'time ' => $ this ->datetime ?->format('H:i:s ' ),
3030 'message ' => $ this ->message ,
3131 'context ' => $ this ->context ,
You can’t perform that action at this time.
0 commit comments