diff --git a/layouts/shortcodes/site-build-info.md b/layouts/shortcodes/site-build-info.md index fd894ce72d36..da1aba4d4cd7 100644 --- a/layouts/shortcodes/site-build-info.md +++ b/layouts/shortcodes/site-build-info.md @@ -7,6 +7,7 @@ {{ $isNetlifyBuilt := os.Getenv "NETLIFY" | default false -}} {{ $isPR := os.Getenv "PULL_REQUEST" -}} {{ $reviewID := os.Getenv "REVIEW_ID" -}} +{{ $now := now -}} Netlify build information: @@ -17,7 +18,7 @@ Netlify built | `{{ $isNetlifyBuilt }}` {{/* Don't show timestamp for local builds to avoid affecting site diffs. */ -}} {{ with $isNetlifyBuilt -}} - Date/time[^date] | {{ now.Format "2006-01-02 15:04" }} + Date/time[^date] | {{ $now.Format "2006-01-02 15:04 MST" }}[^local-time] {{ end -}} {{/* */ -}} @@ -55,3 +56,12 @@ Deploy context | {{ os.Getenv "CONTEXT" | default "local" }} {{/* End of table */}} [^date]: Approximate build timestamp. +[^local-time]: In your timezone: unknown. + +