1, in Startup
the configuration of unified time format
services.AddMvc()
.AddJsonOptions(options =>
{
//配置时间序列化格式
options.SerializerSettings.DateFormatString = "yyyy-MM-dd HH:mm:ss";
})
.SetCompatibilityVersion(CompatibilityVersion.Version_2_2);
2, the Module
configuration of the format of time using MVC
public override void PreInitialize()
{
Configuration.Modules.AbpAspNetCore().UseMvcDateTimeFormatForAppServices = true;//使用mvc时间格式
}