Fix warnings in JsDateToDateTimeAdapter