Author: Honza Pokorny <honza@pokorny.ca>
[patch] make commit date consistent with git By default, there are no leading zeros in the date.
pkg/smithy/smithy.go | 2 +-
diff --git a/pkg/smithy/smithy.go b/pkg/smithy/smithy.go index d2044a0ee01f648f4260723183d8d66a0dfb83e7..df78dd1edd5df6d11290b4e7562c4fabeae52c09 100644 --- a/pkg/smithy/smithy.go +++ b/pkg/smithy/smithy.go @@ -628,7 +628,7 @@ return strings.Join(s, "\n\n\n\n"), nil } func PatchView(ctx *gin.Context, urlParts []string) { - const commitFormatDate = "Mon, 02 Jan 2006 15:04:05 -0700" + const commitFormatDate = "Mon, 2 Jan 2006 15:04:05 -0700" repoName := urlParts[0] smithyConfig := ctx.MustGet("config").(SmithyConfig) repoPath := filepath.Join(smithyConfig.Git.Root, repoName)