From da0535128871c50269be6363f8cf362d53199465 Mon Sep 17 00:00:00 2001 From: Chomp Date: Sun, 4 May 2025 14:10:13 +0100 Subject: [PATCH] formatting cleanup of `GetInRaidTime` --- Libraries/SPTarkov.Server.Core/Helpers/WeatherHelper.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Libraries/SPTarkov.Server.Core/Helpers/WeatherHelper.cs b/Libraries/SPTarkov.Server.Core/Helpers/WeatherHelper.cs index 222570f6..f7f28461 100644 --- a/Libraries/SPTarkov.Server.Core/Helpers/WeatherHelper.cs +++ b/Libraries/SPTarkov.Server.Core/Helpers/WeatherHelper.cs @@ -19,16 +19,14 @@ public class WeatherHelper( /// /// Get the current in-raid time - does not include an accurate date, only time /// - /// (new Date()) + /// (new Date()) /// Date object of current in-raid time public DateTime GetInRaidTime(long? timestamp = null) { // tarkov time = (real time * 7 % 24 hr) + 3 hour var russiaOffsetMilliseconds = _timeUtil.GetHoursAsSeconds(3) * 1000; var twentyFourHoursMilliseconds = _timeUtil.GetHoursAsSeconds(24) * 1000; - var currentTimestampMilliSeconds = timestamp.HasValue - ? timestamp ?? 0 - : _timeUtil.GetTimeStamp(); + var currentTimestampMilliSeconds = timestamp ?? _timeUtil.GetTimeStamp(); return _timeUtil.GetDateTimeFromTimeStamp( (long)