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:
@@ -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
|
||||
|
||||
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user