mirror of
https://github.com/CyberL1/Minecraft-Realms-Emulator.git
synced 2024-11-21 21:58:21 -05:00
feat: calcuate daysLeft in subscriptions
This commit is contained in:
parent
3723234096
commit
cf62e42743
@ -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
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user