Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use of UTC datetime instead of local datetime #3

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Use of UTC datetime instead of local datetime #3

wants to merge 3 commits into from

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