Skip to content

Commit

Permalink
Merge pull request #2788 from bart-webleads/patch-datetime
Browse files Browse the repository at this point in the history
Fix bad value for time element
  • Loading branch information
carakas committed May 20, 2019
2 parents d1c9298 + a5f73a0 commit 9df9cbb
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
Expand Up @@ -41,7 +41,7 @@
{% for item in items %}
<tr>
<td class="date">
<time itemprop="datePublished" datetime="{{ item.publish_on|date('Y-m-d\\TH:i:s.vP' ) }}">
<time itemprop="datePublished" datetime="{{ item.publish_on|date('Y-m-d\\TH:i:s' ) }}">
{{ item.publish_on|spoondate(dateFormatShort,LANGUAGE ) }}
</time>
</td>
Expand Down
Expand Up @@ -32,7 +32,7 @@
<div class="col-xs-12">
{{ 'msg.WrittenBy'|trans|ucfirst|format(item.user_id|usersetting('nickname')) }}
{{ 'lbl.On'|trans }}
<time itemprop="datePublished" datetime="{{ item.publish_on|date('Y-m-d\\TH:i:s.vP' ) }}">
<time itemprop="datePublished" datetime="{{ item.publish_on|date('Y-m-d\\TH:i:s' ) }}">
{{ item.publish_on|spoondate(dateFormatLong, LANGUAGE) }}
</time>
</div>
Expand Down
Expand Up @@ -23,7 +23,7 @@
<div class="col-xs-12">
{{ 'msg.WrittenBy'|trans|ucfirst|format(item.user_id|usersetting('nickname')) }}
{{ 'lbl.On'|trans }}
<time itemprop="datePublished" datetime="{{ item.publish_on|date('Y-m-d\\TH:i:s.vP' ) }}">
<time itemprop="datePublished" datetime="{{ item.publish_on|date('Y-m-d\\TH:i:s' ) }}">
{{ item.publish_on|spoondate(dateFormatLong, LANGUAGE) }}
</time>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/Frontend/Modules/Blog/Layout/Templates/Index.html.twig
Expand Up @@ -31,7 +31,7 @@
<div class="col-xs-12 col-md-8">
{{ 'msg.WrittenBy'|trans|ucfirst|format(item.user_id|usersetting('nickname')) }}
{{ 'lbl.On'|trans }}
<time itemprop="datePublished" datetime="{{ item.publish_on|date('Y-m-d\\TH:i:s.vP' ) }}">
<time itemprop="datePublished" datetime="{{ item.publish_on|date('Y-m-d\\TH:i:s' ) }}">
{{ item.publish_on|spoondate(dateFormatLong, LANGUAGE) }}
</time>
</div>
Expand Down
Expand Up @@ -29,7 +29,7 @@
<div class="col-xs-12 col-md-8">
{{ 'msg.WrittenBy'|trans|ucfirst|format(post.user_id|usersetting('nickname')) }}
{{ 'lbl.On'|trans }}
<time itemprop="datePublished" datetime="{{ post.publish_on|trans|date('Y-m-d\\TH:i:s.vP') }}">
<time itemprop="datePublished" datetime="{{ post.publish_on|trans|date('Y-m-d\\TH:i:s') }}">
{{ post.publish_on|spoondate(dateFormatLong, LANGUAGE ) }}
</time>
</div>
Expand Down
Expand Up @@ -10,7 +10,7 @@
<div class="col-xs-12 col-md-6">
{{ 'msg.WrittenBy'|trans|ucfirst|format(item.user_id|usersetting('nickname')) }}
{{ 'lbl.On'|trans }}
<time itemprop="datePublished" datetime="{{ item.publish_on|date('Y-m-d\TH,i,s' ) }}">
<time itemprop="datePublished" datetime="{{ item.publish_on|date('Y-m-d\\TH:i:s') }}">
{{ item.publish_on|spoondate(dateFormatLong, LANGUAGE) }}
</time>
</div>
Expand Down
Expand Up @@ -18,7 +18,7 @@
<div class="col-xs-12 col-md-8">
{{ 'msg.WrittenBy'|trans|ucfirst|format(item.user_id|usersetting('nickname')) }}
{{ 'lbl.On'|trans }}
<time itemprop="datePublished" datetime="{{ item.publish_on|date('Y-m-d\TH,i,s' ) }}">
<time itemprop="datePublished" datetime="{{ item.publish_on|date('Y-m-d\\TH:i:s') }}">
{{ item.publish_on|spoondate(dateFormatLong, LANGUAGE) }}
</time>
</div>
Expand Down
Expand Up @@ -18,7 +18,7 @@
<div class="col-xs-12 col-md-8">
{{ 'msg.WrittenBy'|trans|ucfirst|format(post.user_id|usersetting('nickname')) }}
{{ 'lbl.On'|trans }}
<time itemprop="datePublished" datetime="{{ post.publish_on|trans|date('Y-m-d\TH,i,s') }}">
<time itemprop="datePublished" datetime="{{ post.publish_on|trans|date('Y-m-d\\TH:i:s') }}">
{{ post.publish_on|spoondate(dateFormatLong, LANGUAGE ) }}
</time>
</div>
Expand Down

0 comments on commit 9df9cbb

Please sign in to comment.