From a1987f3aef1160f04c19f3be00128856849b1ddf Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Mon, 5 Aug 2019 22:22:49 -0700 Subject: [PATCH] Return times in RFC3339 format since the default format is not parsable in PHP --- server/filesystem.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/filesystem.go b/server/filesystem.go index 3259bfb..30d91b0 100644 --- a/server/filesystem.go +++ b/server/filesystem.go @@ -278,8 +278,8 @@ func (s *Stat) MarshalJSON() ([]byte, error) { Mime string `json:"mime"` }{ Name: s.Info.Name(), - Created: s.CTime().String(), - Modified: s.Info.ModTime().String(), + Created: s.CTime().Format(time.RFC3339), + Modified: s.Info.ModTime().Format(time.RFC3339), Mode: s.Info.Mode().String(), Size: s.Info.Size(), Directory: s.Info.IsDir(),