RuedigerMoeller / fast-serialization

FST: fast java serialization drop in-replacement
Apache License 2.0
1.59k stars 247 forks source link

Date Serialize, RMI between servers of different time zones,the result is wrong #160

Closed swcumt closed 8 years ago

swcumt commented 8 years ago

The serialize of Date is this out.writeLong(((Date)toWrite).getTime()); if deserialize with different time zones the date is change....

RuedigerMoeller commented 8 years ago

This is correct behaviour. Timezone is not part of a Date, its involved when printing/formatting only. I recommend reading about how timezones and dates work