mirror of
https://gitea.com/gitea/tea.git
synced 2025-09-02 18:08:30 +02:00
print times in local timezone (#217)
dont resolve location ahead of time fixup! use local timezone for all printed times fixup! use local timezone for all printed times use local timezone for all printed times Co-authored-by: Norwin Roosen <git@nroo.de> Reviewed-on: https://gitea.com/gitea/tea/pulls/217 Reviewed-by: techknowlogick <techknowlogick@gitea.io> Reviewed-by: 6543 <6543@noreply.gitea.io>
This commit is contained in:
@ -83,7 +83,7 @@ func RunIssuesList(ctx *cli.Context) error {
|
||||
string(issue.State),
|
||||
author,
|
||||
mile,
|
||||
issue.Updated.Format("2006-01-02 15:04:05"),
|
||||
print.FormatTime(issue.Updated),
|
||||
},
|
||||
)
|
||||
}
|
||||
|
@ -137,7 +137,7 @@ func runMilestoneIssueList(ctx *cli.Context) error {
|
||||
string(issue.State),
|
||||
kind,
|
||||
name,
|
||||
issue.Updated.Format("2006-01-02 15:04:05"),
|
||||
print.FormatTime(issue.Updated),
|
||||
issue.Title,
|
||||
},
|
||||
)
|
||||
|
@ -72,7 +72,7 @@ func RunMilestonesList(ctx *cli.Context) error {
|
||||
var deadline = ""
|
||||
|
||||
if m.Deadline != nil && !m.Deadline.IsZero() {
|
||||
deadline = m.Deadline.Format("2006-01-02 15:04:05")
|
||||
deadline = print.FormatTime(*m.Deadline)
|
||||
}
|
||||
|
||||
item := []string{
|
||||
|
@ -84,7 +84,7 @@ func RunPullsList(ctx *cli.Context) error {
|
||||
string(pr.State),
|
||||
author,
|
||||
mile,
|
||||
pr.Updated.Format("2006-01-02 15:04:05"),
|
||||
print.FormatTime(*pr.Updated),
|
||||
},
|
||||
)
|
||||
}
|
||||
|
@ -65,7 +65,7 @@ func RunReleasesList(ctx *cli.Context) error {
|
||||
[]string{
|
||||
release.TagName,
|
||||
release.Title,
|
||||
release.PublishedAt.Format("2006-01-02 15:04:05"),
|
||||
print.FormatTime(release.PublishedAt),
|
||||
status,
|
||||
release.TarURL,
|
||||
},
|
||||
|
Reference in New Issue
Block a user