using Newtonsoft.Json; using System; namespace EVCB_OCPP.WSServer { class Program { static void Main(string[] args) { ProtalServer s = new ProtalServer(); Console.WriteLine("Starting Server..."); s.Start(); Console.Read(); } public static object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer) { DateTime? timevalue = null; if (reader.Value != null) { DateTime date = ((DateTime)reader.Value).ToLocalTime(); timevalue = new DateTime(date.Year, date.Month, date.Day, date.TimeOfDay.Hours, date.TimeOfDay.Minutes, date.TimeOfDay.Seconds, 000); } return timevalue; } } }