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 { public getInRaidTime(timestamp?: number): Date {
// tarkov time = (real time * 7 % 24 hr) + 3 hour // 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 twentyFourHoursMilliseconds = this.timeUtil.getHoursAsSeconds(24) * 1000;
const currentTimestampMilliSeconds = timestamp ? timestamp : new Date().getTime(); const currentTimestampMilliSeconds = timestamp ? timestamp : new Date().getTime();