From 48b80ecf78400f8644ab6f67e40aac702ffd65d1 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Sun, 8 Jun 2025 19:01:11 +0100 Subject: [PATCH] Change crashdump file name format this has bothered me for ages since it sorts into some absurd order by default due to the name starting with the day of the week. this way it'll ensure that the files are always alphanumerically ordered, which means the most recent crashdump should always be at the bottom. --- src/Server.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Server.php b/src/Server.php index 679a0ef0b6..d6f0a84156 100644 --- a/src/Server.php +++ b/src/Server.php @@ -1618,7 +1618,7 @@ class Server{ if(!is_dir($crashFolder)){ mkdir($crashFolder); } - $crashDumpPath = Path::join($crashFolder, date("D_M_j-H.i.s-T_Y", (int) $dump->getData()->time) . ".log"); + $crashDumpPath = Path::join($crashFolder, date("Y-m-d_H.i.s_T", (int) $dump->getData()->time) . ".log"); $fp = @fopen($crashDumpPath, "wb"); if(!is_resource($fp)){