Skip to content

Commit 333935a

Browse files
authored
Merge pull request #396 from bcc-code/bugfix/generate-short-timestamp
fix: add timestamp to generated short title
2 parents 0576d33 + 38d3811 commit 333935a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

workflows/export/generate_short.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ func GenerateShort(ctx workflow.Context, params GenerateShortDataParams) (*Gener
9797
return nil, err
9898
}
9999

100-
titleWithShort := badChars.ReplaceAllString(exportData.Title, "_") + "_short"
100+
titleWithShort := badChars.ReplaceAllString(exportData.Title, "_") + "_short_" + time.Now().Format("2006-01-02")
101101

102102
clip := exportData.Clips[0]
103103
clip.InSeconds = params.InSeconds

0 commit comments

Comments
 (0)