Skip to content

Commit

Permalink
Handle Incorrect Time (#540)
Browse files Browse the repository at this point in the history
* Handle Incorrect Time

* Changes made regarding incorrect time

* Fix the linting error

* Fix linting error
  • Loading branch information
y9rabbito authored Jan 23, 2024
1 parent 83ebf9e commit f2d642a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apiserver/pkg/versioneddataset/versioned_dataset.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,10 @@ func VersionFiles(ctx context.Context, c dynamic.Interface, input *generated.Ver
result := make([]generated.PageNode, 0)
for _, obj := range objectInfoList {
if keyword == "" || strings.Contains(obj.Key, keyword) {
lastModifiedTime := obj.LastModified
tf := generated.F{
Path: strings.TrimPrefix(obj.Key, prefix),
Time: &obj.LastModified,
Time: &lastModifiedTime,
}

size := utils.BytesToSizedStr(obj.Size)
Expand Down

0 comments on commit f2d642a

Please sign in to comment.