mirror of
https://github.com/1f349/go-webdav.git
synced 2025-04-12 06:55:59 +01:00
.
This commit is contained in:
parent
6da8290c04
commit
968917bb84
@ -354,7 +354,7 @@ type Time time.Time
|
|||||||
func (t *Time) UnmarshalText(b []byte) error {
|
func (t *Time) UnmarshalText(b []byte) error {
|
||||||
tt, err := http.ParseTime(string(b))
|
tt, err := http.ParseTime(string(b))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return errors.Join(err, errors.New("time_data : "+base64.StdEncoding.EncodeToString(b)))
|
return errors.New(err.Error() + " : time_data : " + base64.StdEncoding.EncodeToString(b))
|
||||||
}
|
}
|
||||||
*t = Time(tt)
|
*t = Time(tt)
|
||||||
return nil
|
return nil
|
||||||
|
Loading…
x
Reference in New Issue
Block a user