diff --git a/wowchemy/layouts/partials/book_layout.html b/wowchemy/layouts/partials/book_layout.html
index fa3333da..fa60c6fc 100644
--- a/wowchemy/layouts/partials/book_layout.html
+++ b/wowchemy/layouts/partials/book_layout.html
@@ -51,7 +51,7 @@
-
{{ i18n "last_updated" }} {{ $.Lastmod.Format site.Params.date_format }}
+
{{ i18n "last_updated" }} {{ $.Lastmod | time.Format site.Params.date_format }}
{{ partial "page_edit" . }}
diff --git a/wowchemy/layouts/partials/functions/get_event_dates.html b/wowchemy/layouts/partials/functions/get_event_dates.html
index db621b92..df9c5fbd 100644
--- a/wowchemy/layouts/partials/functions/get_event_dates.html
+++ b/wowchemy/layouts/partials/functions/get_event_dates.html
@@ -1,17 +1,17 @@
{{/* Function to get event start and end dates/times. */}}
{{ $t1 := time .Date }}{{/* Start datetime. */}}
-{{ $str := slice ((time $t1).Format site.Params.date_format) }}{{/* Init return string with start date. */}}
+{{ $str := slice (time.Format site.Params.date_format (time $t1)) }}{{/* Init return string with start date. */}}
{{/* Show start time if not all day event. */}}
-{{ if not .Params.all_day }}{{ $str = $str | append ((time $t1).Format (site.Params.time_format)) }}{{ end }}
+{{ if not .Params.all_day }}{{ $str = $str | append (time.Format site.Params.time_format (time $t1)) }}{{ end }}
{{/* Show event end date if provided. */}}
{{ if .Params.date_end }}
{{ $str = $str | append "—" }}
{{ $t2 := time .Params.date_end}}{{/* End datetime. */}}
{{/* Show end date if it differs to start date. */}}
{{ if not (eq $t1.Year $t2.Year | and (eq $t1.Month $t2.Month) | and (eq $t1.Day $t2.Day)) }}
- {{ $str = $str | append ((time $t2).Format site.Params.date_format) }}
+ {{ $str = $str | append (time.Format site.Params.date_format (time $t2)) }}
{{ end }}
{{/* Show end time if not all day event. */}}
- {{ if not .Params.all_day }}{{ $str = $str | append ((time $t2).Format (site.Params.time_format)) }}{{ end }}
+ {{ if not .Params.all_day }}{{ $str = $str | append (time.Format site.Params.time_format (time $t2)) }}{{ end }}
{{ end }}
{{ return (delimit $str " ") }}
diff --git a/wowchemy/layouts/partials/page_metadata.html b/wowchemy/layouts/partials/page_metadata.html
index 7cf57826..c017a55a 100644
--- a/wowchemy/layouts/partials/page_metadata.html
+++ b/wowchemy/layouts/partials/page_metadata.html
@@ -15,9 +15,9 @@
{{ if not (in (slice "event" "page") $page.Type) | and (ne $page.Params.show_date false) }}
- {{ $date := $page.Lastmod.Format site.Params.date_format }}
+ {{ $date := $page.Lastmod | time.Format site.Params.date_format }}
{{ if eq $page.Type "publication" }}
- {{ $date = $page.Date.Format (site.Params.publications.date_format | default "January, 2006") }}
+ {{ $date = $page.Date | time.Format (site.Params.publications.date_format | default "January, 2006") }}
{{ else }}
{{ if ne $page.Params.Lastmod $page.Params.Date }}
{{ i18n "last_updated" }}
diff --git a/wowchemy/layouts/partials/widgets/accomplishments.html b/wowchemy/layouts/partials/widgets/accomplishments.html
index 0a6359a3..00081eed 100644
--- a/wowchemy/layouts/partials/widgets/accomplishments.html
+++ b/wowchemy/layouts/partials/widgets/accomplishments.html
@@ -32,9 +32,9 @@
- {{ (time .date_start).Format ($page.Params.date_format | default "Jan 2006") }}
+ {{ (time .date_start) | time.Format ($page.Params.date_format | default "Jan 2006") }}
{{ if .date_end}}
- – {{ (time .date_end).Format ($page.Params.date_format | default "Jan 2006") }}
+ – {{ (time .date_end) | time.Format ($page.Params.date_format | default "Jan 2006") }}
{{end}}
diff --git a/wowchemy/layouts/partials/widgets/experience.html b/wowchemy/layouts/partials/widgets/experience.html
index 45276ec0..b495af6e 100644
--- a/wowchemy/layouts/partials/widgets/experience.html
+++ b/wowchemy/layouts/partials/widgets/experience.html
@@ -48,9 +48,9 @@
{{- with .company_url}}{{end}}{{.company | markdownify | emojify}}{{with .company_url}}{{end -}}
- {{ (time .date_start).Format ($page.Params.date_format | default "January 2006") }} –
+ {{ (time .date_start) | time.Format ($page.Params.date_format | default "January 2006") }} –
{{ if .date_end}}
- {{ (time .date_end).Format ($page.Params.date_format | default "January 2006") }}
+ {{ (time .date_end) | time.Format ($page.Params.date_format | default "January 2006") }}
{{else}}
{{ i18n "present" | default "Present" }}
{{end}}