fix: Correct DateTime to Timestamp conversions for timezone accuracy and ensure startTimestamp uses the full order.startDate.

This commit is contained in:
Achintha Isuru
2026-02-22 12:06:17 -05:00
parent b519c49406
commit 415475acb6
2 changed files with 11 additions and 4 deletions

View File

@@ -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