0
0
mirror of https://github.com/sp-tarkov/server.git synced 2025-02-13 02:10:44 -05:00

Adjust time offset to make raid timers match live

This commit is contained in:
Dev 2024-11-18 21:06:46 +00:00
parent 0af9961dc6
commit bda8f3fda2

View File

@ -25,7 +25,7 @@ export class WeatherHelper {
*/
public getInRaidTime(timestamp?: number): Date {
// tarkov time = (real time * 7 % 24 hr) + 3 hour
const russiaOffsetMilliseconds = this.timeUtil.getHoursAsSeconds(2) * 1000;
const russiaOffsetMilliseconds = this.timeUtil.getHoursAsSeconds(3) * 1000;
const twentyFourHoursMilliseconds = this.timeUtil.getHoursAsSeconds(24) * 1000;
const currentTimestampMilliSeconds = timestamp ? timestamp : new Date().getTime();