Skip to content

Commit 9ed7dbc

Browse files
authored
Use "_" separator for time as ":" does not work on Windows
1 parent c1bbcf8 commit 9ed7dbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SwiftMailer/Transport/FileTransport.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public function send(Swift_Mime_Message $message, &$failedRecipients = null)
120120
protected function doSend(Swift_Mime_Message $message, &$failedRecipients = null)
121121
{
122122
$body = $message->toString();
123-
$fileName = $this->path.'/'.date('Y-m-d H:i:s');
123+
$fileName = $this->path.'/'.date('Y-m-d H_i_s');
124124

125125
for ($i = 0; $i < $this->retryLimit; ++$i) {
126126
/* We try an exclusive creation of the file. This is an atomic operation, it avoid locking mechanism */

0 commit comments

Comments
 (0)