Skip to content

Commit

Permalink
Reverse time parsing arguments (#75)
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Swärd <ds@ponc.tech>
  • Loading branch information
Excds and Daniel Swärd authored Oct 16, 2024
1 parent 779ca5a commit d984bd1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dsp/control/control.go
Original file line number Diff line number Diff line change
Expand Up @@ -332,11 +332,11 @@ func processDataset(dsp shared.Dataset) *dspv1alpha1.Dataset {
Language: v.Language,
}
}
issued, err := time.Parse(dsp.Issued, time.RFC3339)
issued, err := time.Parse(time.RFC3339, dsp.Issued)
if err != nil {
issued = time.Unix(0, 0).UTC()
}
modified, err := time.Parse(dsp.Modified, time.RFC3339)
modified, err := time.Parse(time.RFC3339, dsp.Modified)
if err != nil {
modified = time.Unix(0, 0).UTC()
}
Expand Down

0 comments on commit d984bd1

Please sign in to comment.