Files
bb691c9312 vmbackup: update AWS SDK to v2 (#3174)
* lib/backup/s3remote: update AWS SDK to v2

* Update lib/backup/s3remote/s3.go

Co-authored-by: Aliaksandr Valialkin <[email protected]>

* lib/backup/s3remote: refactor error handling

Co-authored-by: Aliaksandr Valialkin <[email protected]>
2022-10-01 17:12:07 +03:00

14 lines
324 B
Go

package http
import (
"time"
smithytime "github.com/aws/smithy-go/time"
)
// ParseTime parses a time string like the HTTP Date header. This uses a more
// relaxed rule set for date parsing compared to the standard library.
func ParseTime(text string) (t time.Time, err error) {
return smithytime.ParseHTTPDate(text)
}