Don't miss out Virtual Happy Hour this Friday (April 26).
Don't miss out Virtual Happy Hour this Friday (April 26).
Feb 24, 2017
Mar 15, 2017
CMS Core
Closed, Fixed and tested
I tried to update the property DatabaseDateTimeKind of an existing store by:
set
storeParams.DatabaseDateTimeKind = DatabaseDateTimeKind.Utc;
then remap store and commit change
storeDefinition.Remap(typesBag, storeParams);
storeDefinition.CommitChanges();
But after calling the CreateStore method, I get a store with storeDefinition.DatabaseDateTimeKind as Unspecified.
I can set DatabaseDateTimeKind after remapping the store as follows:
storeDefinition.Remap(typesBag, storeParams);
if (storeParams.DatabaseDateTimeKind.HasValue)
{
storeDefinition.DatabaseDateTimeKind = storeParams.DatabaseDateTimeKind.Value;
}
storeDefinition.CommitChanges();