Added TimeFormatter helper.
[VesselSimulator.git] / KerbalEngineer / Flight / Readouts / Orbital / TimeToEquatorialAscendingNode.cs
blob:a/KerbalEngineer/Flight/Readouts/Orbital/TimeToEquatorialAscendingNode.cs -> blob:b/KerbalEngineer/Flight/Readouts/Orbital/TimeToEquatorialAscendingNode.cs
--- a/KerbalEngineer/Flight/Readouts/Orbital/TimeToEquatorialAscendingNode.cs
+++ b/KerbalEngineer/Flight/Readouts/Orbital/TimeToEquatorialAscendingNode.cs
@@ -20,6 +20,7 @@
 #region Using Directives
 
 using KerbalEngineer.Extensions;
+using KerbalEngineer.Helpers;
 
 #endregion
 
@@ -27,6 +28,8 @@
 {
     public class TimeToEquatorialAscendingNode : ReadoutModule
     {
+        #region Constructors
+
         public TimeToEquatorialAscendingNode()
         {
             this.Name = "Time to Equ. AN";
@@ -35,9 +38,15 @@
             this.IsDefault = true;
         }
 
+        #endregion
+
+        #region Methods: public
+
         public override void Draw()
         {
-            this.DrawLine(FlightGlobals.ActiveVessel.orbit.GetTimeToAscendingNode().ToTime());
+            this.DrawLine(TimeFormatter.ConvertToString(FlightGlobals.ActiveVessel.orbit.GetTimeToAscendingNode()));
         }
+
+        #endregion
     }
 }