Skip to content
This repository has been archived by the owner on Jan 31, 2024. It is now read-only.

Commit

Permalink
[cbox-commit-18] Fix expiration time format
Browse files Browse the repository at this point in the history
  • Loading branch information
ishank011 committed Feb 28, 2022
1 parent 26da408 commit 70320d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cbox/utils/conversions.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ func ConvertToCS3PublicShare(s DBShare) *link.PublicShare {
}
var expires *typespb.Timestamp
if s.Expiration != "" {
t, err := time.Parse("2006-01-02 03:04:05", s.Expiration)
t, err := time.Parse("2006-01-02 15:04:05", s.Expiration)
if err == nil {
expires = &typespb.Timestamp{
Seconds: uint64(t.Unix()),
Expand Down

0 comments on commit 70320d4

Please sign in to comment.