diff --git a/core/resources/datafiles/thrustcurves/thrustcurves.ser b/core/resources/datafiles/thrustcurves/thrustcurves.ser index 940a7da86..1dbe1e1ff 100644 Binary files a/core/resources/datafiles/thrustcurves/thrustcurves.ser and b/core/resources/datafiles/thrustcurves/thrustcurves.ser differ diff --git a/core/src/net/sf/openrocket/thrustcurve/SearchResponseParser.java b/core/src/net/sf/openrocket/thrustcurve/SearchResponseParser.java index 137c9ec69..03dd75643 100644 --- a/core/src/net/sf/openrocket/thrustcurve/SearchResponseParser.java +++ b/core/src/net/sf/openrocket/thrustcurve/SearchResponseParser.java @@ -2,6 +2,8 @@ package net.sf.openrocket.thrustcurve; import java.io.IOException; import java.io.InputStream; +import java.text.ParseException; +import java.text.SimpleDateFormat; import java.util.HashMap; import org.xml.sax.InputSource; @@ -172,6 +174,12 @@ public class SearchResponseParser implements ElementHandler { case availability: currentMotor.setAvailability(content); break; + case updated_on: + SimpleDateFormat formatter = new SimpleDateFormat("dd-MM-yyyy"); + try { + currentMotor.setUpdated_on(formatter.parse(content)); + } catch (ParseException ignored) { } + break; } } diff --git a/core/src/net/sf/openrocket/thrustcurve/TCMotor.java b/core/src/net/sf/openrocket/thrustcurve/TCMotor.java index 9ce3bed90..6ad80cf87 100644 --- a/core/src/net/sf/openrocket/thrustcurve/TCMotor.java +++ b/core/src/net/sf/openrocket/thrustcurve/TCMotor.java @@ -292,7 +292,7 @@ public class TCMotor implements Cloneable { + ", info_url=" + info_url + ", tot_mass_g=" + tot_mass_g + ", prop_mass_g=" + prop_mass_g + ", delays=" + delays + ", case_info=" + case_info + ", prop_info=" + prop_info - + ", updated_on=" + updated_on + "]"; + + ", updated_on=" + updated_on + ", availability=" + availability + "]"; } }