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

Commit

Permalink
Revert "Use RFC3339 format for parsing dates (cs3org#2744)"
Browse files Browse the repository at this point in the history
This reverts commit 628915c.
  • Loading branch information
ishank011 committed May 19, 2022
1 parent 65d6144 commit 3d54250
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions changelog/unreleased/rfc3339-fix.md

This file was deleted.

2 changes: 1 addition & 1 deletion internal/http/services/owncloud/ocs/conversions/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ func timestampToExpiration(t *types.Timestamp) string {

// ParseTimestamp tries to parses the ocs expiry into a CS3 Timestamp
func ParseTimestamp(timestampString string) (*types.Timestamp, error) {
parsedTime, err := time.Parse(time.RFC3339, timestampString)
parsedTime, err := time.Parse("2006-01-02T15:04:05Z0700", timestampString)
if err != nil {
parsedTime, err = time.Parse("2006-01-02", timestampString)
}
Expand Down

0 comments on commit 3d54250

Please sign in to comment.