fix serialization for all temporal type
Merge pull request #558 from MaksSlesarenko/fix-for-temporal-types

fix serialization for all temporal type