From 403f5a96476bb89dfd1629d34694d9fd769bdcc9 Mon Sep 17 00:00:00 2001 From: getsnoopy Date: Tue, 3 Aug 2021 10:22:40 -0500 Subject: [PATCH] Fix ISO 8601 timestamp formatting --- lib/webrick/httpservlet/filehandler.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/webrick/httpservlet/filehandler.rb b/lib/webrick/httpservlet/filehandler.rb index 7ab88bc..56729ae 100644 --- a/lib/webrick/httpservlet/filehandler.rb +++ b/lib/webrick/httpservlet/filehandler.rb @@ -529,7 +529,7 @@ def set_dir_list(req, res) dname = name end s = +"#{HTMLUtils::escape(dname)}" - s << "" << (time ? time.strftime("%Y/%m/%d %H:%M") : "") << "" + s << "" << (time ? time.strftime("%Y-%m-%d %H:%M") : "") << "" s << "" << (size >= 0 ? size.to_s : "-") << "\n" res.body << s }