fix timezone related bug on binary date serialization