Skip to content

Commit

Permalink
fix time
Browse files Browse the repository at this point in the history
  • Loading branch information
wxiaoguang committed Nov 5, 2024
1 parent 54e5157 commit 7549200
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion modules/templates/util_date.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func (du *DateUtils) AbsoluteShort(time any) template.HTML {

// AbsoluteLong renders in "January 01, 2006" format
func (du *DateUtils) AbsoluteLong(time any) template.HTML {
return dateTimeFormat("short", time)
return dateTimeFormat("long", time)
}

// FullTime renders in "Jan 01, 2006 20:33:44" format
Expand Down
4 changes: 2 additions & 2 deletions templates/repo/graph/commits.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
{{end}}
{{end}}
</span>
<span class="author tw-flex tw-items-center tw-mr-2 tw-gap-[1px]">
<span class="author tw-flex tw-items-center tw-mr-2 tw-gap-1">
{{$userName := $commit.Commit.Author.Name}}
{{if $commit.User}}
{{if and $commit.User.FullName DefaultShowFullName}}
Expand All @@ -69,7 +69,7 @@
{{$userName}}
{{end}}
</span>
<span class="time tw-flex tw-items-center">{{DateUtils.FullTime $commit.Date}}</span>
<span class="time tw-flex tw-items-center">{{$commit.Date}}</span>
{{end}}
</li>
{{end}}
Expand Down

0 comments on commit 7549200

Please # to comment.