fix(Core/Instances): day-align expired reset time (#26711)
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -354,7 +354,7 @@ void InstanceSaveMgr::LoadResetTimes()
|
|||||||
{
|
{
|
||||||
// assume that expired instances have already been cleaned
|
// assume that expired instances have already been cleaned
|
||||||
// calculate the next reset time
|
// calculate the next reset time
|
||||||
t = (t * DAY) / DAY;
|
t = (t / DAY) * DAY;
|
||||||
t += ((today - t) / period + 1) * period + diff;
|
t += ((today - t) / period + 1) * period + diff;
|
||||||
CharacterDatabase.DirectExecute("UPDATE instance_reset SET resettime = '{}' WHERE mapid = '{}' AND difficulty = '{}'", (uint32)t, mapid, difficulty);
|
CharacterDatabase.DirectExecute("UPDATE instance_reset SET resettime = '{}' WHERE mapid = '{}' AND difficulty = '{}'", (uint32)t, mapid, difficulty);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user