Commit 3ba56e62 authored by Jeremy Mikola's avatar Jeremy Mikola

PHPLIB-222: Pass UTCDateTime constructor argument as integer

parent 942af4ed
...@@ -85,7 +85,7 @@ class WritableStream ...@@ -85,7 +85,7 @@ class WritableStream
'chunkSize' => $this->chunkSize, 'chunkSize' => $this->chunkSize,
'filename' => (string) $filename, 'filename' => (string) $filename,
// TODO: This is necessary until PHPC-536 is implemented // TODO: This is necessary until PHPC-536 is implemented
'uploadDate' => new UTCDateTime(floor(microtime(true) * 1000)), 'uploadDate' => new UTCDateTime((int) floor(microtime(true) * 1000)),
] + array_intersect_key($options, ['aliases' => 1, 'contentType' => 1, 'metadata' => 1]); ] + array_intersect_key($options, ['aliases' => 1, 'contentType' => 1, 'metadata' => 1]);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment