Fix utc datetime

This commit is contained in:
Francisco Salas 2023-06-19 09:18:39 +02:00
parent 5a4a04a3ec
commit 9c65d3c6c6

View File

@ -23,7 +23,7 @@ namespace FarmmapsApi.Services
public async Task<Item> 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,