Skip to content

Commit

Permalink
fix(post-type-event): add missing conditional for end property
Browse files Browse the repository at this point in the history
  • Loading branch information
paulrobertlloyd committed Oct 8, 2024
1 parent 330e023 commit 3e1a8a0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/post-type-event/includes/post-types/start.njk
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{%- set startFormat = "PPp" if property | includes("T") else "PP" -%}
{%- set endFormat = "PPp" if properties.end | includes("T") else "PP" -%}
{%- if properties.end -%}
{%- set endFormat = "PPp" if properties.end | includes("T") else "PP" -%}
{%- endif -%}
{%- set html -%}
{{ icon("event") }}
{{- property | date(startFormat, { locale: opts.locale, timeZone: application.timeZone }) -}}
Expand Down

0 comments on commit 3e1a8a0

Please sign in to comment.