fix(doc-gen): update timestamp format to RFC3339 standard

- Change timestamp format from "2006-01-02" to time.RFC3339 constant
- Ensures generated documentation includes full ISO 8601 timestamp with timezone
- Improves consistency with standard time formatting practices
This commit is contained in:
yyhuni
2026-01-20 21:18:53 +08:00
parent 72210c42d0
commit b4bfab92e3

View File

@@ -121,7 +121,7 @@ func generateDocumentation(templateFile TemplateFile) (string, error) {
sb.WriteString("<!-- This file is auto-generated by go generate. DO NOT EDIT. -->\n")
sb.WriteString("<!-- Source: worker/internal/workflow/subdomain_discovery/templates.yaml -->\n")
sb.WriteString("<!-- Generate: go generate ./internal/workflow/subdomain_discovery/ -->\n")
sb.WriteString(fmt.Sprintf("<!-- Generated At (UTC): %s -->\n\n", time.Now().UTC().Format("2006-01-02")))
sb.WriteString(fmt.Sprintf("<!-- Generated At (UTC): %s -->\n\n", time.Now().UTC().Format(time.RFC3339)))
docMeta, err := requireDocMetadata(templateFile.Metadata)
if err != nil {