Useful Info
OS: Microsoft Windows 10 Pro
Ver: 3.1.0.402
.NET: 4.7.2
Description
When editing an existing event, the planner is inconsistent in showing the start & end icons. Setting new end times eventually causes an exception. Did the exact same thing in 3.1.0.399 and it worked fine.
Steps to Reproduce this Issue
Edit an existing target settings, show planner.
Neither the start or end icon was displayed.
Set new start time - right of some position, no icon is displayed. Left of that position, start icon is displayed.
Set new end time - no icon, tried setting end time closer and closer to the right of the start time then SGP got an exception:
************** Exception Text **************
System.ArgumentOutOfRangeException: The added or subtracted value results in an un-representable DateTime.
Parameter name: value
at System.DateTime.AddTicks(Int64 value)
at System.DateTime.Add(Double value, Int32 scale)
at og.pf(jw A_0, DateTime A_1, Boolean A_2)
at og.pt(jw A_0, Nullable`1 A_1)
at og.rr()
at og.tl(Object A_0, EventArgs A_1)
at System.Windows.Forms.DateTimePicker.OnValueChanged(EventArgs eventargs)
at System.Windows.Forms.DateTimePicker.set_Value(DateTime value)
at jw.pt(Object A_0, MouseEventArgs A_1)
at System.Windows.Forms.Control.OnMouseClick(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
[12/04/19 07:29:49.906][DEBUG] [Main Thread] End time has altitude lock, calculating start time for 20
[12/04/19 07:29:49.906][DEBUG] [Main Thread] ConvertTargetAltitudeToTime -> RefTime: 12/4/2019 5:23:00 AM; TargetAlt: 20; RA: 5; DEC 10; Lat: 40; Lon: -79; SiteElev: 0;
[12/04/19 07:29:49.909][DEBUG] [Main Thread] ConvertTargetAltitudeToTime -> Returned: SequenceGenerator.AltitudeToTimeData
[12/04/19 07:29:49.909][DEBUG] [Main Thread] Success. Found time 5:16 AM 12/4/2019 for altitude 20.0
To get logs: In SGPro click the Help->Open Log
or if you are looking for logs from a previous session, Help->Open Log Folder
and search by date.