updated GetTimeStampFromEpoch summery and made weathergenerate closer to ts

This commit is contained in:
KaenoDev
2025-01-15 14:39:33 +00:00
parent 72457b697a
commit 3501ee4c2a
3 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -159,7 +159,7 @@ public class WeatherGenerator
var formattedDate = _timeUtil.FormatDate(timestamp.HasValue ? _timeUtil.GetDateTimeFromTimeStamp(timestamp.Value) : DateTime.UtcNow);
var datetimeBsgFormat = $"{formattedDate} {normalTime}";
weather.Timestamp = timestamp ?? _timeUtil.GetTimeStampFromEpoch(inRaidTime); // matches weather.date We use to divide by 1000
weather.Timestamp = timestamp ?? _timeUtil.GetTimeStampFromEpoch(inRaidTime) / 1000; // matches weather.date
weather.Date = formattedDate; // matches weather.timestamp
weather.Time = datetimeBsgFormat; // matches weather.timestamp
weather.SptInRaidTimestamp = _timeUtil.GetTimeStampFromEpoch(inRaidTime);