Strange double timezones


I am receiving strange double timezones in my time tags:


    <span class="col-md-3 text-sm-left text-xs-left text-md-right">↩
      <time class="post-date updated" datetime="2018-02-14 20:11:26 &#43;0700 &#43;0700">↩
        <i class="fas fa-calendar-alt" aria-hidden="true"></i>&nbsp;↩

Also it looks like the datetime gets htmlencoded?

The snippet in question looks like this (ignore that data.months-thing, that is translating my months):

    <span class="col-md-3 text-sm-left text-xs-left text-md-right">
      <time class="post-date updated" datetime="{{ .Date }}">
        <i class="fas fa-calendar-alt" aria-hidden="true"></i>&nbsp;
        {{ .Date.Format "2" }}.
        {{ index $.Site.Data.months.months .Date.Month }}
        {{ .Date.Format "2006" }}

the date in the md file looks like this:

date: 2018-02-14T20:11:26+07:00

What’s going on?

It appears that this is the wanted format when no formatting is given in the .Date tag.

My solution looks like this now:

<time class="post-date updated" datetime="{{ .Date.Format "2006-01-02T15:04:05-0700" }}">
1 Like