Fixed issue with json date serialization.