From 9c65d3c6c654fa29111d382eb73cc19dec37838b Mon Sep 17 00:00:00 2001 From: Francisco Salas Date: Mon, 19 Jun 2023 09:18:39 +0200 Subject: [PATCH] Fix utc 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 b3d298b..d644254 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).ToUniversalTime(); + var currentYear = new DateTime(year, 1, 1, 0, 0, 0, DateTimeKind.Utc); var cropfieldItemRequest = new ItemRequest() { ParentCode = parentItemCode, ItemType = CROPFIELD_ITEMTYPE,