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 摘要。