Realm Swift Date to JSON issue


When I have a Date converted to JSON with DateTransform() I get 1533159629.46318 which is an odd number. If however if I move the decimal point and use javascript new Date(1533159629463.18) I get the correct time I made the date. how do I fix this?