mirror of
https://github.com/containers/skopeo.git
synced 2025-09-09 18:49:27 +00:00
Update c/image from the main branch
> go get github.com/containers/image/v5@main > make vendor Signed-off-by: Miloslav Trmač <mitr@redhat.com>
This commit is contained in:
6
vendor/github.com/go-openapi/strfmt/date.go
generated
vendored
6
vendor/github.com/go-openapi/strfmt/date.go
generated
vendored
@@ -57,7 +57,7 @@ func (d *Date) UnmarshalText(text []byte) error {
|
||||
if len(text) == 0 {
|
||||
return nil
|
||||
}
|
||||
dd, err := time.Parse(RFC3339FullDate, string(text))
|
||||
dd, err := time.ParseInLocation(RFC3339FullDate, string(text), DefaultTimeLocation)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
@@ -107,7 +107,7 @@ func (d *Date) UnmarshalJSON(data []byte) error {
|
||||
if err := json.Unmarshal(data, &strdate); err != nil {
|
||||
return err
|
||||
}
|
||||
tt, err := time.Parse(RFC3339FullDate, strdate)
|
||||
tt, err := time.ParseInLocation(RFC3339FullDate, strdate, DefaultTimeLocation)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
@@ -126,7 +126,7 @@ func (d *Date) UnmarshalBSON(data []byte) error {
|
||||
}
|
||||
|
||||
if data, ok := m["data"].(string); ok {
|
||||
rd, err := time.Parse(RFC3339FullDate, data)
|
||||
rd, err := time.ParseInLocation(RFC3339FullDate, data, DefaultTimeLocation)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
Reference in New Issue
Block a user