summaryrefslogtreecommitdiffstats
path: root/templates/repo/issue/view_title.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/repo/issue/view_title.tmpl')
-rw-r--r--templates/repo/issue/view_title.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/repo/issue/view_title.tmpl b/templates/repo/issue/view_title.tmpl
index 4650ba4c80..d69f699ac1 100644
--- a/templates/repo/issue/view_title.tmpl
+++ b/templates/repo/issue/view_title.tmpl
@@ -26,7 +26,7 @@
{{if .Issue.IsPull}}
{{if .Issue.PullRequest.HasMerged}}
- {{ $mergedStr:= TimeSince .Issue.PullRequest.Merged $.Lang }}
+ {{ $mergedStr:= TimeSinceUnix .Issue.PullRequest.MergedUnix $.Lang }}
<a {{if gt .Issue.PullRequest.Merger.ID 0}}href="{{.Issue.PullRequest.Merger.HomeLink}}"{{end}}>{{.Issue.PullRequest.Merger.Name}}</a>
<span class="pull-desc">{{$.i18n.Tr "repo.pulls.merged_title_desc" .NumCommits .HeadTarget .BaseTarget $mergedStr | Str2html}}</span>
{{else}}
@@ -34,7 +34,7 @@
<span class="pull-desc">{{$.i18n.Tr "repo.pulls.title_desc" .NumCommits .HeadTarget .BaseTarget | Str2html}}</span>
{{end}}
{{else}}
- {{ $createdStr:= TimeSince .Issue.Created $.Lang }}
+ {{ $createdStr:= TimeSinceUnix .Issue.CreatedUnix $.Lang }}
<span class="time-desc">
{{if gt .Issue.Poster.ID 0}}
{{$.i18n.Tr "repo.issues.opened_by" $createdStr .Issue.Poster.HomeLink .Issue.Poster.Name | Safe}}