Skip to content

Commit 3e1a8a0

Browse files
fix(post-type-event): add missing conditional for end property
1 parent 330e023 commit 3e1a8a0

File tree

1 file changed

+3
-1
lines changed
  • packages/post-type-event/includes/post-types

1 file changed

+3
-1
lines changed

packages/post-type-event/includes/post-types/start.njk

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
{%- set startFormat = "PPp" if property | includes("T") else "PP" -%}
2-
{%- set endFormat = "PPp" if properties.end | includes("T") else "PP" -%}
2+
{%- if properties.end -%}
3+
{%- set endFormat = "PPp" if properties.end | includes("T") else "PP" -%}
4+
{%- endif -%}
35
{%- set html -%}
46
{{ icon("event") }}
57
{{- property | date(startFormat, { locale: opts.locale, timeZone: application.timeZone }) -}}

0 commit comments

Comments
 (0)