From 5a4a04a3ecee28225b0ba1ee6163ad3794b1688c Mon Sep 17 00:00:00 2001 From: Francisco Salas Date: Mon, 19 Jun 2023 09:06:59 +0200 Subject: [PATCH] Fix datetime --- FarmmapsApi/Services/GeneralService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FarmmapsApi/Services/GeneralService.cs b/FarmmapsApi/Services/GeneralService.cs index 7027985..b3d298b 100644 --- a/FarmmapsApi/Services/GeneralService.cs +++ b/FarmmapsApi/Services/GeneralService.cs @@ -23,7 +23,7 @@ namespace FarmmapsApi.Services public async Task CreateCropfieldItemAsync(string parentItemCode, string name, int year, string fieldGeomJson, string data = "{}") { - var currentYear = new DateTime(year, 1, 1); + var currentYear = new DateTime(year, 1, 1).ToUniversalTime(); var cropfieldItemRequest = new ItemRequest() { ParentCode = parentItemCode, ItemType = CROPFIELD_ITEMTYPE,