feat: calcuate daysLeft in subscriptions

This commit is contained in:
CyberL1 2024-03-17 01:36:23 +01:00
parent 3723234096
commit cf62e42743

View File

@ -28,7 +28,7 @@ namespace Minecraft_Realms_Emulator.Controllers
var sub = new Subscription
{
StartDate = ((DateTimeOffset) subscription.StartDate).ToUnixTimeMilliseconds(),
DaysLeft = subscription.World.DaysLeft,
DaysLeft = ((DateTimeOffset) subscription.StartDate.AddDays(30) - DateTime.Today).Days,
SubscriptionType = subscription.SubscriptionType
};