From 6ca12f7771e4224464e73271dd47f040cbaf9d4b Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期五, 13 十二月 2024 10:39:54 +0800
Subject: [PATCH] 查询任务只查有效期内的,开启的

---
 models/gather_model.go |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/models/gather_model.go b/models/gather_model.go
index 375526b..5e13538 100644
--- a/models/gather_model.go
+++ b/models/gather_model.go
@@ -308,7 +308,7 @@
 										if gatherEvents, ok := floorBucket.(map[string]interface{})["gather_events"].(map[string]interface{})["buckets"].([]interface{}); ok {
 											for _, eventBucket := range gatherEvents {
 												key := int64(eventBucket.(map[string]interface{})["key"].(float64)) / 1000 // 灏嗘绉掕浆鎹负绉�
-												timestamp := time.Unix(key, 0).Format("2006-01-02 15:04:05")
+												timestamp := time.Unix(key, 0).UTC().Format("2006-01-02 15:04:05")
 
 												// 瑙f瀽浜哄憳
 												if peopleBuckets, ok := eventBucket.(map[string]interface{})["people"].(map[string]interface{})["buckets"].([]interface{}); ok {

--
Gitblit v1.8.0