Skip to content

Commit

Permalink
Revert "Use RFC3339 format for parsing dates (#2744)" (#2940)
Browse files Browse the repository at this point in the history
This reverts commit 628915c.
  • Loading branch information
ishank011 authored Jun 9, 2022
1 parent 226ec79 commit 795861a
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 795861a

Please sign in to comment.