File tree 2 files changed +11
-1
lines changed
2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 63
63
64
64
'timezone ' => null ,
65
65
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
+
66
76
/*
67
77
|--------------------------------------------------------------------------
68
78
| Log Viewer route middleware.
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ public function toArray($request): array
25
25
'level_name ' => $ level ->getName (),
26
26
'level_class ' => $ level ->getClass ()->value ,
27
27
28
- 'datetime ' => $ this ->datetime ?->toDateTimeString( ),
28
+ 'datetime ' => $ this ->datetime ?->format( config ( ' log-viewer.datetime_format ' , ' Y-m-d H:i:s ' ) ),
29
29
'time ' => $ this ->datetime ?->format('H:i:s ' ),
30
30
'message ' => $ this ->message ,
31
31
'context ' => $ this ->context ,
You can’t perform that action at this time.
0 commit comments