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 | 7df5e63e8b2eaa5b4f83ee72a32eeedd480cde47 (patch) | |
tree | 77e56827955f1e84aaa0ccb8d36969818cfc1640 /Timeline/Startup.cs | |
parent | 4685d69fe965b32438c399a4ad4a3deee9fb0a55 (diff) | |
download | timeline-7df5e63e8b2eaa5b4f83ee72a32eeedd480cde47.tar.gz timeline-7df5e63e8b2eaa5b4f83ee72a32eeedd480cde47.tar.bz2 timeline-7df5e63e8b2eaa5b4f83ee72a32eeedd480cde47.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());
|