diff --git a/create/content.go b/create/content.go index 98b3652a4..fa37f2666 100644 --- a/create/content.go +++ b/create/content.go @@ -98,7 +98,7 @@ func NewContent(kind, name string) (err error) { return err } - if x := viper.GetString("MetaDataFormat"); x == "json" || x == "yaml" || x == "toml" { + if x := parser.FormatSanitize(viper.GetString("MetaDataFormat")); x == "json" || x == "yaml" || x == "toml" { newmetadata["date"] = time.Now().Format(time.RFC3339) }