Fix datetime

This commit is contained in:
Francisco Salas 2023-06-19 09:06:59 +02:00
parent cb999caf46
commit 5a4a04a3ec

View File

@ -23,7 +23,7 @@ namespace FarmmapsApi.Services
public async Task<Item> CreateCropfieldItemAsync(string parentItemCode, string name, int year, public async Task<Item> CreateCropfieldItemAsync(string parentItemCode, string name, int year,
string fieldGeomJson, string data = "{}") { string fieldGeomJson, string data = "{}") {
var currentYear = new DateTime(year, 1, 1); var currentYear = new DateTime(year, 1, 1).ToUniversalTime();
var cropfieldItemRequest = new ItemRequest() { var cropfieldItemRequest = new ItemRequest() {
ParentCode = parentItemCode, ParentCode = parentItemCode,
ItemType = CROPFIELD_ITEMTYPE, ItemType = CROPFIELD_ITEMTYPE,