I am trying to send request from the server to client(.Net) which is running in culture specific environment which affects dates to be in special time zone.
I am sending date from the server with Unspecified kind for avoiding it being converted while getting retrieved on client side. Basically I just convert it like this on server side:
DateTime dateToSend = DateTime.SpecifyKind(serverSideDate, DateTimeKind.Unspecified);
The problem is that when using JsonProtocol for the client, date is not getting converted and is getting processed correctly, while for MessagePackProtocol the same code for client and server side works completely different way - it converts date to culture specific timezone on the client...
How to prevent that conversion, without some hack solutions like passing date as a string.
UPDATE:
As Shaun suggested, I've configured MessagePack both on client and server side this way, but unfortunaly it's still not working:
.AddMessagePackProtocol(options =>
options.FormatterResolvers = new List<MessagePack.IFormatterResolver>()
{
StandardResolver.Instance,
NativeDateTimeResolver.Instance
})