diff --git a/cmd/DigitalOceanSnapshotter/main.go b/cmd/DigitalOceanSnapshotter/main.go index 41e3c70..bb758fe 100644 --- a/cmd/DigitalOceanSnapshotter/main.go +++ b/cmd/DigitalOceanSnapshotter/main.go @@ -112,7 +112,7 @@ func main() { handleError(ctx, err, true) } - secondTime, err := time.Parse(createdAtFormat, snapshots[firstIndex].Created) + secondTime, err := time.Parse(createdAtFormat, snapshots[secondIndex].Created) if err != nil { handleError(ctx, err, true) }