diff options
author | Gabriel A. Giovanini <mail@gabrielgio.me> | 2025-02-08 22:13:05 +0100 |
---|---|---|
committer | Gabriel A. Giovanini <mail@gabrielgio.me> | 2025-02-08 22:14:52 +0100 |
commit | df980f995128e4a1d2180e711c191a5d39bf90fb (patch) | |
tree | 3f7468523cee7ceb21e4190b00bfc90f8431a3e0 /templates | |
parent | af516a40ecee17bc668ef225bbda16792e29244d (diff) | |
download | cerrado-df980f995128e4a1d2180e711c191a5d39bf90fb.tar.gz cerrado-df980f995128e4a1d2180e711c191a5d39bf90fb.tar.bz2 cerrado-df980f995128e4a1d2180e711c191a5d39bf90fb.zip |
ref: Use proper time formatting
Diffstat (limited to 'templates')
-rw-r--r-- | templates/commit.qtpl | 2 | ||||
-rw-r--r-- | templates/commit.qtpl.go | 4 | ||||
-rw-r--r-- | templates/gitlist.qtpl | 2 | ||||
-rw-r--r-- | templates/gitlist.qtpl.go | 4 |
4 files changed, 6 insertions, 6 deletions
diff --git a/templates/commit.qtpl b/templates/commit.qtpl index ea2f144..b5699f4 100644 --- a/templates/commit.qtpl +++ b/templates/commit.qtpl @@ -14,7 +14,7 @@ </div> {% endif %} <div class="col-md text-md-end"> - <a title="{%s c.Author.When.Format("2006-01-02 15:04:05 UTC")%}">{%s humanize.Time(c.Author.When) %}</a> + <a title="{%s c.Author.When.UTC().Format("2006-01-02 15:04:05")%} UTC">{%s humanize.Time(c.Author.When) %}</a> </div> </div> <div class="code-view"> diff --git a/templates/commit.qtpl.go b/templates/commit.qtpl.go index eeaa1f0..75ae899 100644 --- a/templates/commit.qtpl.go +++ b/templates/commit.qtpl.go @@ -89,9 +89,9 @@ func StreamCommit(qw422016 *qt422016.Writer, name string, c *object.Commit, show <div class="col-md text-md-end"> <a title="`) //line templates/commit.qtpl:17 - qw422016.E().S(c.Author.When.Format("2006-01-02 15:04:05 UTC")) + qw422016.E().S(c.Author.When.UTC().Format("2006-01-02 15:04:05")) //line templates/commit.qtpl:17 - qw422016.N().S(`">`) + qw422016.N().S(` UTC">`) //line templates/commit.qtpl:17 qw422016.E().S(humanize.Time(c.Author.When)) //line templates/commit.qtpl:17 diff --git a/templates/gitlist.qtpl b/templates/gitlist.qtpl index bb07e7f..3cd133f 100644 --- a/templates/gitlist.qtpl +++ b/templates/gitlist.qtpl @@ -43,7 +43,7 @@ type GitListPage struct { <div class="event-commit row"> <a class="col-xl-2" title="{%s r.LastCommit.Hash.String() %}" href="/{%s r.Name %}/commit/{%s r.LastCommit.Hash.String() %}/">{%s r.LastCommit.Hash.String()[0:8] %}</a> <a class="col-xl-7"> {%s firstLine(r.LastCommit.Message) %}</a> - <a class="col-xl-3" title="{%s r.LastCommit.Author.When.Format("2006-01-02 15:04:05 UTC")%}">{%s humanize.Time(r.LastCommit.Author.When) %}</a> + <a class="col-xl-3" title="{%s r.LastCommit.Author.When.UTC().Format("2006-01-02 15:04:05")%} UTC">{%s humanize.Time(r.LastCommit.Author.When) %}</a> </div> <p> <a href="/{%s r.Name %}/log/{%s r.Ref %}/">log</a> diff --git a/templates/gitlist.qtpl.go b/templates/gitlist.qtpl.go index 6fb168a..1c0fdac 100644 --- a/templates/gitlist.qtpl.go +++ b/templates/gitlist.qtpl.go @@ -178,9 +178,9 @@ func (p *GitListPage) StreamContent(qw422016 *qt422016.Writer, ctx context.Conte qw422016.N().S(`</a> <a class="col-xl-3" title="`) //line templates/gitlist.qtpl:46 - qw422016.E().S(r.LastCommit.Author.When.Format("2006-01-02 15:04:05 UTC")) + qw422016.E().S(r.LastCommit.Author.When.UTC().Format("2006-01-02 15:04:05")) //line templates/gitlist.qtpl:46 - qw422016.N().S(`">`) + qw422016.N().S(` UTC">`) //line templates/gitlist.qtpl:46 qw422016.E().S(humanize.Time(r.LastCommit.Author.When)) //line templates/gitlist.qtpl:46 |