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"`
|
Mime string `json:"mime"`
|
||||||
}{
|
}{
|
||||||
Name: s.Info.Name(),
|
Name: s.Info.Name(),
|
||||||
Created: s.CTime().String(),
|
Created: s.CTime().Format(time.RFC3339),
|
||||||
Modified: s.Info.ModTime().String(),
|
Modified: s.Info.ModTime().Format(time.RFC3339),
|
||||||
Mode: s.Info.Mode().String(),
|
Mode: s.Info.Mode().String(),
|
||||||
Size: s.Info.Size(),
|
Size: s.Info.Size(),
|
||||||
Directory: s.Info.IsDir(),
|
Directory: s.Info.IsDir(),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user