diff options
author | crupest <crupest@outlook.com> | 2020-08-11 17:59:44 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-08-11 17:59:44 +0800 |
commit | d447950255e39a00a16466d7fe6e6d42a7c91eea (patch) | |
tree | e5627e37430adff1dff17d0d27976798e1ed4e0b /Timeline/Startup.cs | |
parent | ef734ef7e819bb6aa038e435e8468b75caba20a4 (diff) | |
download | timeline-d447950255e39a00a16466d7fe6e6d42a7c91eea.tar.gz timeline-d447950255e39a00a16466d7fe6e6d42a7c91eea.tar.bz2 timeline-d447950255e39a00a16466d7fe6e6d42a7c91eea.zip |
Post list modified since now consider username change. And make all datetime utc.
Diffstat (limited to 'Timeline/Startup.cs')
-rw-r--r-- | Timeline/Startup.cs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Timeline/Startup.cs b/Timeline/Startup.cs index 7a813ac7..be2377b9 100644 --- a/Timeline/Startup.cs +++ b/Timeline/Startup.cs @@ -8,6 +8,7 @@ using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection.Extensions;
using Microsoft.Extensions.Hosting;
using System;
+using System.ComponentModel;
using System.Text.Json.Serialization;
using Timeline.Auth;
using Timeline.Configs;
@@ -40,6 +41,8 @@ namespace Timeline // This method gets called by the runtime. Use this method to add services to the container.
public void ConfigureServices(IServiceCollection services)
{
+ TypeDescriptor.AddAttributes(typeof(DateTime), new TypeConverterAttribute(typeof(MyDateTimeConverter)));
+
services.AddControllers(setup =>
{
setup.InputFormatters.Add(new StringInputFormatter());
|