Skip to content

Commit f8be60f

Browse files
committed
Fix stat in bunny driver
1 parent cf55e64 commit f8be60f

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

‎registry/storage/driver/bunny/bunny.go‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,11 @@ func (d *driver) Stat(ctx context.Context, path string) (storagedriver.FileInfo,
184184
if err != nil {
185185
modTime, err = time.Parse("2006-01-02T15:04:05.0", info.LastChanged)
186186
if err != nil {
187-
fmt.Println("Error parsing modification time:", err)
188-
return nil, err
187+
modTime, err = time.Parse("2006-01-02T15:04:05", info.LastChanged)
188+
if err != nil {
189+
fmt.Println("Error parsing modification time:", err)
190+
return nil, err
191+
}
189192
}
190193
}
191194
}

0 commit comments

Comments
 (0)