Hello,
I’ve been using UTC DateTime
objects throughout my projects with JsConfig
set to:
JsConfig.AlwaysUseUtc = true;
JsConfig.AssumeUtc = true;
Which works as expected for everything except when using IRedisClient
:
Redis.Get<MyObject> ("key");
Where MyObject
type has a DateTime
, that property is coming back as Kind
= Local
However if I deserialise without using the Redis.Get<T>
method, the ‘Kind’ = ‘Utc’ as expected
var json = Redis.Get<string>("key");
var object = json.FromJson<MyObject>();
How can I get Redis
to honour the JsConfig
settings?
Thanks,
Scott