mirror of
https://github.com/1f349/go-webdav.git
synced 2025-03-31 01:05:15 +01:00
Allow for internal time data debug.
This commit is contained in:
parent
2281ef31f1
commit
6da8290c04
@ -1,6 +1,7 @@
|
||||
package internal
|
||||
|
||||
import (
|
||||
"encoding/base64"
|
||||
"encoding/xml"
|
||||
"errors"
|
||||
"fmt"
|
||||
@ -353,7 +354,7 @@ type Time time.Time
|
||||
func (t *Time) UnmarshalText(b []byte) error {
|
||||
tt, err := http.ParseTime(string(b))
|
||||
if err != nil {
|
||||
return err
|
||||
return errors.Join(err, errors.New("time_data : "+base64.StdEncoding.EncodeToString(b)))
|
||||
}
|
||||
*t = Time(tt)
|
||||
return nil
|
||||
|
Loading…
x
Reference in New Issue
Block a user