Serialize date as a long instead of going through an Instant (java 8).