Skip to content
Snippets Groups Projects

Removed the <time> tag for Unix timestamp in views rest export

2 files
+ 9
0
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -19,4 +19,10 @@
* @see https://www.w3.org/TR/html5-author/the-time-element.html#attr-time-datetime
*/
#}
{% if text matches '/^\\d+$/' %}
{{ text }}
{% else %}
<time{{ attributes }}>{{ text }}</time>
{% endif %}
Loading