Skip to content

Commit

Permalink
Fix time format.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathieu Leduc-Hamel committed Feb 26, 2021
1 parent 3badfdb commit 4ba8b4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/store/s3.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func (s *S3) Setup(ctx context.Context) error {
func (s *S3) Persist(ctx context.Context, timestamp int64, name string, id string, data interface{}) error {
ctx = context.Background()
datetime := time.Unix(timestamp, 0)
key := fmt.Sprintf("%s/%s/%s.json", name, datetime.Format("20060102150405"), id)
key := fmt.Sprintf("%s/%s/%s.json", name, datetime.Format("200601021504"), id)

s.cfg.Logger().Debug().Msgf("Persisting %s", key)
_, err := s.client.PutObjectWithContext(ctx, &s3.PutObjectInput{
Expand Down

0 comments on commit 4ba8b4d

Please sign in to comment.