Error changing the date of Brewfest events in the calendar

未關閉
#31,325 3 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 10 天內回覆

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
35/100
Issue 類型
缺陷
描述清晰度
需要釐清
活躍度
停滯
技術堆疊
cpp, sql

研究方向

首先,使用在 branch 3.3.5 上提供的 game_event 和 holiday_dates SQL 變更重現 Brewfest 日曆案例,然後追蹤這些資料表如何向用戶端日曆提供事件日期和持續時間。完成的標準是:對於 Brewfest,輸入的開始日期和持續時間不變地顯示,同時其他事件的行為仍然正確。

由索引模型根據 Issue 內容生成。

描述

Branch-3.3.5a
Description

Changing the start time of an event and its duration in the calendar does not work correctly when writing to the holiday_dates table.
The start date of the event in the calendar is shifted by the amount of its duration, while the duration of the event remains the same..
For all other events, the start date and their duration are displayed correctly in the calendar.

Expected behaviour

The start and duration of the Brewfest event must match the data that was entered into the database and be displayed correctly in the calendar of events in the client.

Steps to reproduce the problem

For example. Need change date start and duratuin Brewfest
Add new date event start from 15/09/2025 and duration =28 day

UPDATE game_event SET start_time='2025-09-15 00:01:00', length=40320 WHERE eventEntry=24;
UPDATE game_event SET start_time='2025-09-12 00:01:00', length=4032 WHERE eventEntry=70;

DELETE FROM holiday_dates WHERE id=372;
INSERT INTO holiday_dates (id, date_id, date_value, holiday_duration) VALUES
(372,0, 428048384, 672),
(372,1, 444825600, 672);

Branch

3.3.5

TC rev. hash/commit

TrinityCore rev. eac8411fe6b20a50092ac6115e65597da1b51e1e 2025-09-27

Operating system

Windows 10 x64

Custom changes

Fixed NPCBots for TrinityCore 3.3.5 ver. 27 Sep 2025, 6e683bc945

主要語言
C++
星號
10.9k
分支
6.5k
平均合併
9 天 12 小時
30 天內合併 PR
7

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

TrinityCore/TrinityCore 的其他 Issue

查看 TrinityCore/TrinityCore 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。