File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ class Transmission extends APIResource {
7575 * 'replyTo': string,
7676 * 'rfc822': string,
7777 * 'sandbox': boolean,
78- * 'startTime': string,
78+ * 'startTime': string | \DateTime ,
7979 * 'subject': string,
8080 * 'substitutionData': array,
8181 * 'template': string,
@@ -89,6 +89,13 @@ class Transmission extends APIResource {
8989 * @return array API repsonse represented as key-value pairs
9090 */
9191 public function send ( $ transmissionConfig ) {
92+ if (isset ($ transmissionConfig ["startTime " ]) &&
93+ $ transmissionConfig ["startTime " ] instanceof \DateTime)
94+ {
95+ $ transmissionConfig ["startTime " ] =
96+ $ transmissionConfig ["startTime " ]->format (\DateTime::ATOM );
97+ }
98+
9299 return $ this ->create ( $ transmissionConfig );
93100 }
94101
You can’t perform that action at this time.
0 commit comments