Skip to content

Commit c25e3e9

Browse files
author
Denis Schedrikov
committed
YP-713 fix datetime format
1 parent a2fb945 commit c25e3e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Examples/getReportOrder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717
$apiRequest->setSandboxMode();
1818

1919
// Подготовим диапазон дат для отчета
20-
$endDate = (new DateTime('now'))->format('Y-m-d');
20+
$endDate = (new DateTime('now'))->format('c');
2121

2222
$startDate = (new DateTime($endDate))
2323
->modify('-14 day')
24-
->format('Y-m-d');
24+
->format('c');
2525

2626
$data = [
2727
'startDate' => $startDate,

0 commit comments

Comments
 (0)