I recently upgraded to 5.8 as part of a large refactor including migrating as much code as possible to .net standard (including pulling most registration code into an IPlugin). Since doing this, we are getting very sporadic instances of DateTimes being stored in Redis in the following (UK) format: “dd/MM/yyyy HH:mm:ss”. This is running on Azure WebApps so has no context of “being in the UK”.
Can you think of any Redis serialisation path that would lead to this? I have the following but no-idea really what this does.
RequestContext.UseThreadStatic = false;
If it was american format, I would be less flummoxed as that’s the default date format in DateTimeSerializer, but it’s UK format.
We don’t set the thread’s culture anywhere
public void CacheEntity<T>(T entity) where T : BaseEntity
{
if (entity == null) return;
if (!entity.GetType().HasAttribute<CacheMeAttribute>()) return;
using (var client = ClientManager.GetClient())
{
var key = EntityKey(entity);
client.Add(key, entity);
}
}
Clutching at straws, so any help appreciated.