Skip to content

Commit 2d4c632

Browse files
authored
Use ISO date format instead of hard-coded English date format for date range in repo activity page (#21396)
January 2, 2006 -> 2006-01-02 Signed-off-by: Yarden Shoham <[email protected]>
1 parent 1428877 commit 2d4c632

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

routers/web/repo/activity.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ func Activity(ctx *context.Context) {
4747
ctx.Data["Period"] = "weekly"
4848
timeFrom = timeUntil.Add(-time.Hour * 168)
4949
}
50-
ctx.Data["DateFrom"] = timeFrom.Format("January 2, 2006")
51-
ctx.Data["DateUntil"] = timeUntil.Format("January 2, 2006")
50+
ctx.Data["DateFrom"] = timeFrom.Format("2006-01-02")
51+
ctx.Data["DateUntil"] = timeUntil.Format("2006-01-02")
5252
ctx.Data["PeriodText"] = ctx.Tr("repo.activity.period." + ctx.Data["Period"].(string))
5353

5454
var err error

0 commit comments

Comments
 (0)