Skip to content

Conversation

@gillesmeyer
Copy link

Hi,

The Hessian protocol specifies that a date should be represented as a 64-bit long of milliseconds since Jan 1 1970 00:00H, UTC (ref: http://hessian.caucho.com/doc/hessian-serialization.html##date)

In the current implementation, there is a conversion from that UTC date to a C# DateTime with the specification that the DateTime object is expressed in local time. Moreover, there is an additional offset added to the received date. That offset converts the UTC date to a local date in CET zone (UTC+1).

I think that the Hessian client should not deal with such local time concern but should instead serves the date as UTC date (as the protocol states) and leave the consumer of that date decide what to do with it.

The current pull request removes the arbitrary conversion to CET zone and only deals with UTC date time at serialization and deserialization time.

Regards,
Gilles

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant