2
0
mirror of https://github.com/hibiken/asynq.git synced 2025-10-25 23:06:12 +08:00

Change UTC timezone to system time

This commit is contained in:
Alexandros Ioannides
2023-07-09 00:55:32 +03:00
parent 123d560a44
commit 020309f472
12 changed files with 33 additions and 33 deletions

View File

@@ -180,7 +180,7 @@ func printQueueInfo(info *asynq.QueueInfo) {
},
)
fmt.Println()
bold.Printf("Daily Stats %s UTC\n", info.Timestamp.UTC().Format("2006-01-02"))
bold.Printf("Daily Stats %s\n", info.Timestamp.In(time.Local).Format("2006-01-02"))
printTable(
[]string{"processed", "failed", "error rate"},
func(w io.Writer, tmpl string) {
@@ -218,7 +218,7 @@ func queueHistory(cmd *cobra.Command, args []string) {
func printDailyStats(stats []*asynq.DailyStats) {
printTable(
[]string{"date (UTC)", "processed", "failed", "error rate"},
[]string{"date", "processed", "failed", "error rate"},
func(w io.Writer, tmpl string) {
for _, s := range stats {
var errRate string

View File

@@ -139,7 +139,7 @@ func stats(cmd *cobra.Command, args []string) {
printStatsByQueue(stats)
fmt.Println()
bold.Printf("Daily Stats %s UTC\n", aggStats.Timestamp.UTC().Format("2006-01-02"))
bold.Printf("Daily Stats %s\n", aggStats.Timestamp.In(time.Local).Format("2006-01-02"))
printSuccessFailureStats(&aggStats)
fmt.Println()