Skip to content

Commit a7ec065

Browse files
committed
Change DateHandler to work around Mono issue
1 parent 81df1ea commit a7ec065

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/ServiceStack.MovieRest/Global.asax.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
using ServiceStack.Common.Utils;
44
using ServiceStack.OrmLite;
55
using ServiceStack.OrmLite.Sqlite;
6+
using ServiceStack.Text;
67
using ServiceStack.WebHost.Endpoints;
78

89
namespace ServiceStack.MovieRest
@@ -15,6 +16,8 @@ public AppHost()
1516

1617
public override void Configure(Container container)
1718
{
19+
JsConfig.DateHandler = JsonDateHandler.ISO8601;
20+
1821
container.Register<IDbConnectionFactory>(c =>
1922
new OrmLiteConnectionFactory(
2023
"~/App_Data/db.sqlite".MapHostAbsolutePath(),

0 commit comments

Comments
 (0)