Return times in RFC3339 format since the default format is not parsable in PHP
This commit is contained in:
parent
7c82c6445d
commit
a1987f3aef
|
@ -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(),
|
||||
|
|
Loading…
Reference in New Issue
Block a user