Skip to content

Commit

Permalink
Remove usage of no longer allowed template modifier strtotime
Browse files Browse the repository at this point in the history
Closes #473
  • Loading branch information
BurntimeX committed Dec 3, 2024
1 parent 75566c9 commit 21e828a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/tutorial/series/part_2.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ The code for the table head is similar to the other `th` elements:
For the table body’s column, we need to make sure that the birthday is only show if it is actually set:

```smarty
<td class="columnDate columnBirthday">{if $person->birthday}{@$person->birthday|strtotime|date}{/if}</td>
<td class="columnDate columnBirthday">{if $person->birthday}{$person->birthday}{/if}</td>
```


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<templatelistener name="personListBirthdayColumn">
<eventname>columns</eventname>
<environment>admin</environment>
<templatecode><![CDATA[<td class="columnDate columnBirthday">{if $person->birthday}{@$person->birthday|strtotime|date}{/if}</td>]]></templatecode>
<templatecode><![CDATA[<td class="columnDate columnBirthday">{if $person->birthday}{$person->birthday}{/if}</td>]]></templatecode>
<templatename>personList</templatename>
</templatelistener>
<!-- /admin -->
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{if $person->birthday}
<dt>{lang}wcf.person.birthday{/lang}</dt>
<dd>{@$person->birthday|strtotime|date}</dd>
<dd>{$person->birthday}</dd>
{/if}

0 comments on commit 21e828a

Please sign in to comment.