diff --git a/VkNet/Model/StatsPeriod.cs b/VkNet/Model/StatsPeriod.cs index c13f666ff..5ce7ddb94 100644 --- a/VkNet/Model/StatsPeriod.cs +++ b/VkNet/Model/StatsPeriod.cs @@ -1,5 +1,6 @@ using System; using System.Collections.ObjectModel; +using System.Globalization; using VkNet.Utils; namespace VkNet.Model @@ -42,13 +43,13 @@ public long? ReachSubscribers /// /// Число новых подписчиков. /// - public long Subscribed + public long? Subscribed { get; set; } /// /// Число отписавшихся. /// - public long Unsubscribed + public long? Unsubscribed { get; set; } /// @@ -90,7 +91,7 @@ internal static StatsPeriod FromJson(VkResponse response) { var statsPeriod = new StatsPeriod { - Day = DateTime.Parse(response["day"]), + Day = DateTime.Parse(response["day"], DateTimeFormatInfo.InvariantInfo), Views = response["views"], Visitors = response["visitors"], Reach = response["reach"],