S3: fix compatibility with newer SDK versions

Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
Nicola Murino
2023-12-12 18:16:53 +01:00
parent a132a21a38
commit 8812e5e450
4 changed files with 210 additions and 510 deletions

View File

@@ -336,7 +336,7 @@ func GetIntFromPointer(val *int64) int64 {
// GetTimeFromPointer returns the time value or now
func GetTimeFromPointer(val *time.Time) time.Time {
if val == nil {
return time.Now()
return time.Unix(0, 0)
}
return *val
}