Add more metadata
This commit is contained in:
15
internal/dav/util.go
Normal file
15
internal/dav/util.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package dav
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"time"
|
||||
)
|
||||
|
||||
func convertDate(input string) string {
|
||||
t, err := time.Parse(time.RFC3339, input)
|
||||
if err != nil {
|
||||
fmt.Println("Error:", err)
|
||||
return ""
|
||||
}
|
||||
return t.Format("Mon, 02 Jan 2006 15:04:05 GMT")
|
||||
}
|
||||
Reference in New Issue
Block a user