Return times in RFC3339 format since the default format is not parsable in PHP

This commit is contained in:
Dane Everitt 2019-08-05 22:22:49 -07:00
parent 7c82c6445d
commit a1987f3aef
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53

View File

@ -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(),