Skip to content

Commit 7549200

Browse files
committed
fix time
1 parent 54e5157 commit 7549200

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

modules/templates/util_date.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ func (du *DateUtils) AbsoluteShort(time any) template.HTML {
2828

2929
// AbsoluteLong renders in "January 01, 2006" format
3030
func (du *DateUtils) AbsoluteLong(time any) template.HTML {
31-
return dateTimeFormat("short", time)
31+
return dateTimeFormat("long", time)
3232
}
3333

3434
// FullTime renders in "Jan 01, 2006 20:33:44" format

templates/repo/graph/commits.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
{{end}}
5757
{{end}}
5858
</span>
59-
<span class="author tw-flex tw-items-center tw-mr-2 tw-gap-[1px]">
59+
<span class="author tw-flex tw-items-center tw-mr-2 tw-gap-1">
6060
{{$userName := $commit.Commit.Author.Name}}
6161
{{if $commit.User}}
6262
{{if and $commit.User.FullName DefaultShowFullName}}
@@ -69,7 +69,7 @@
6969
{{$userName}}
7070
{{end}}
7171
</span>
72-
<span class="time tw-flex tw-items-center">{{DateUtils.FullTime $commit.Date}}</span>
72+
<span class="time tw-flex tw-items-center">{{$commit.Date}}</span>
7373
{{end}}
7474
</li>
7575
{{end}}

0 commit comments

Comments
 (0)