Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS will be completely phased out by mid-2025. To see alternatives please check here

Skip to content
Snippets Groups Projects
Commit 5281046c authored by Markus Quaritsch's avatar Markus Quaritsch
Browse files

use xmlconvert to store date in utc format

parent 6746dff7
No related branches found
No related tags found
No related merge requests found
......@@ -4,6 +4,7 @@ using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml;
using System.Xml.Linq;
using Castle.Core.Internal;
using TUGraz.IVT.VectoXML.Writer;
......@@ -84,7 +85,7 @@ namespace VECTO3GUI.Util.XML
new XElement(_v26 + XMLNames.Component_ManufacturerAddress, vehicleData?.ManufacturerAddress),
new XElement(_v26 + XMLNames.Component_Model, vehicleData.Model),
new XElement(_v26 + XMLNames.Vehicle_VIN, vehicleData.VIN),
new XElement(_v26 + XMLNames.Component_Date, vehicleData.Date.ToString("s") + "Z"),
new XElement(_v26 + XMLNames.Component_Date, XmlConvert.ToString(DateTime.Now, XmlDateTimeSerializationMode.Utc)),
new XElement(_v26 + XMLNames.Vehicle_LegislativeClass, vehicleData.LegislativeClass.GetLabel()),
new XElement(_v26 + XMLNames.Vehicle_RegisteredClass, vehicleData.RegisteredClass.GetLabel()),
new XElement(_v26 + XMLNames.Vehicle_VehicleCode, vehicleData.VehicleCode.GetLabel()),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment