diff options
author | Yarden Shoham <hrsi88@gmail.com> | 2022-10-11 13:48:17 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-11 18:48:17 +0800 |
commit | 2d4c6321c39a10a020e12809fb3d855442629007 (patch) | |
tree | 111596efd1d0d09ae75e1613fd9e981dac3bf8ee /routers | |
parent | 1428877c379e21481c31114cf39df2c0c14d874f (diff) | |
download | gitea-2d4c6321c39a10a020e12809fb3d855442629007.tar.gz gitea-2d4c6321c39a10a020e12809fb3d855442629007.zip |
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 <hrsi88@gmail.com>
Diffstat (limited to 'routers')
-rw-r--r-- | routers/web/repo/activity.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/web/repo/activity.go b/routers/web/repo/activity.go index 7f2ed8cb26..a1f1106159 100644 --- a/routers/web/repo/activity.go +++ b/routers/web/repo/activity.go @@ -47,8 +47,8 @@ func Activity(ctx *context.Context) { ctx.Data["Period"] = "weekly" timeFrom = timeUntil.Add(-time.Hour * 168) } - ctx.Data["DateFrom"] = timeFrom.Format("January 2, 2006") - ctx.Data["DateUntil"] = timeUntil.Format("January 2, 2006") + ctx.Data["DateFrom"] = timeFrom.Format("2006-01-02") + ctx.Data["DateUntil"] = timeUntil.Format("2006-01-02") ctx.Data["PeriodText"] = ctx.Tr("repo.activity.period." + ctx.Data["Period"].(string)) var err error |