We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 330e023 commit 3e1a8a0Copy full SHA for 3e1a8a0
packages/post-type-event/includes/post-types/start.njk
@@ -1,5 +1,7 @@
1
{%- set startFormat = "PPp" if property | includes("T") else "PP" -%}
2
-{%- set endFormat = "PPp" if properties.end | includes("T") else "PP" -%}
+{%- if properties.end -%}
3
+ {%- set endFormat = "PPp" if properties.end | includes("T") else "PP" -%}
4
+{%- endif -%}
5
{%- set html -%}
6
{{ icon("event") }}
7
{{- property | date(startFormat, { locale: opts.locale, timeZone: application.timeZone }) -}}
0 commit comments