fix: Correct DateTime to Timestamp conversions for timezone accuracy and ensure startTimestamp uses the full order.startDate.
This commit is contained in:
@@ -132,7 +132,7 @@ class ClientCreateOrderRepositoryImpl
|
||||
order.startDate.day,
|
||||
);
|
||||
final Timestamp orderTimestamp = _service.toTimestamp(orderDateOnly);
|
||||
final Timestamp startTimestamp = orderTimestamp;
|
||||
final Timestamp startTimestamp = _service.toTimestamp(order.startDate);
|
||||
final Timestamp endTimestamp = _service.toTimestamp(order.endDate);
|
||||
|
||||
final OperationResult<dc.CreateOrderData, dc.CreateOrderVariables>
|
||||
@@ -259,7 +259,7 @@ class ClientCreateOrderRepositoryImpl
|
||||
order.startDate.day,
|
||||
);
|
||||
final Timestamp orderTimestamp = _service.toTimestamp(orderDateOnly);
|
||||
final Timestamp startTimestamp = orderTimestamp;
|
||||
final Timestamp startTimestamp = _service.toTimestamp(order.startDate);
|
||||
|
||||
final OperationResult<dc.CreateOrderData, dc.CreateOrderVariables>
|
||||
orderResult = await _service.connector
|
||||
|
||||
Reference in New Issue
Block a user