commands: Use short date format in CLI docs
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Wed, 11 Apr 2018 07:47:58 +0000 (09:47 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Wed, 11 Apr 2018 07:48:34 +0000 (09:48 +0200)
To make it possible to compare the output.

See #4598

commands/gendoc.go

index c4840050b1e74e911b8e5528aa7775f47be7038d..0fe30bf1918798b351023d66f2d7d6e570b302ee 100644 (file)
@@ -57,7 +57,7 @@ for rendering in Hugo.`,
                                return err
                        }
                }
-               now := time.Now().Format(time.RFC3339)
+               now := time.Now().Format("2006-01-02")
                prepender := func(filename string) string {
                        name := filepath.Base(filename)
                        base := strings.TrimSuffix(name, path.Ext(name))