Skip to content

序列化和反序列化时,时间类型可自定义格式吗?或有相关的配置项? #1

@williamreg

Description

@williamreg

如题

类似在Newtonsoft.Json中的配置:

//时间格式
                setting.DateFormatString = "yyyy-MM-dd HH:mm:ss";
                //本地时间
                setting.DateTimeZoneHandling = DateTimeZoneHandling.Local;

以前想装换成jil,因为jil不支持这种灵活的时间配置,还是继续用Newtonsoft.Json。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions