mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	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>
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user