Everything was working fine, until today...
Something about an invalid date, raised from ordermanager.cs line 1953...
How to fix it?
Thanks.
The exception:
Server Error in '/' Application.
The supplied DateTime represents an invalid time. For example, when the clock is adjusted forward, any time in the period that is skipped is invalid.
Parameter name: dateTime
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ArgumentException: The supplied DateTime represents an invalid time. For example, when the clock is adjusted forward, any time in the period that is skipped is invalid.
Parameter name: dateTime
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[ArgumentException: The supplied DateTime represents an invalid time. For example, when the clock is adjusted forward, any time in the period that is skipped is invalid.
Parameter name: dateTime]
System.TimeZoneInfo.ConvertTime(DateTime dateTime, TimeZoneInfo sourceTimeZone, TimeZoneInfo destinationTimeZone, TimeZoneInfoOptions flags) +490001
System.TimeZoneInfo.ConvertTimeToUtc(DateTime dateTime, TimeZoneInfo sourceTimeZone) +87
NopSolutions.NopCommerce.BusinessLogic.Profile.DateTimeHelper.ConvertToUtcTime(DateTime dt, TimeZoneInfo sourceTimeZone) in F:\Temp\Test\nopCommerce 1.60\Libraries\Nop.BusinessLogic\Profile\DateTimeHelper.cs:99
NopSolutions.NopCommerce.BusinessLogic.Orders.OrderManager.OrderAverageReport(OrderStatusEnum os) in F:\Temp\Test\nopCommerce 1.60\Libraries\Nop.BusinessLogic\Orders\OrderManager.cs:1953
NopSolutions.NopCommerce.Web.Administration.Modules.OrderAverageReportControl.BindData() in F:\Temp\Test\nopCommerce 1.60\NopCommerceStore\Administration\Modules\OrderAverageReport.ascx.cs:49
NopSolutions.NopCommerce.Web.Administration.Modules.OrderAverageReportControl.Page_Load(Object sender, EventArgs e) in F:\Temp\Test\nopCommerce 1.60\NopCommerceStore\Administration\Modules\OrderAverageReport.ascx.cs:42
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +50
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627
Version Information: Microsoft .NET Framework Version:2.0.50727.4206; ASP.NET Version:2.0.50727.4209