Skip to content
This repository has been archived by the owner on May 8, 2024. It is now read-only.

Commit

Permalink
Fixed a syntax error for PHP 5.5 and 5.6 in `MicrosoftAzure\Storage\C…
Browse files Browse the repository at this point in the history
…ommon\Internal::Utilities:isoDate`.
  • Loading branch information
XiaoningLiu authored and vinjiang committed Sep 25, 2017
1 parent 1923fd4 commit e1702ae
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
5 changes: 5 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2017.09 - version 0.19.1

ALL
* Fixed a syntax error for PHP 5.5 and 5.6 in `MicrosoftAzure\Storage\Common\Internal::Utilities:isoDate`.

2017.09 - version 0.19.0

ALL
Expand Down
2 changes: 1 addition & 1 deletion src/Common/Internal/Resources.php
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ class Resources
const DEAFULT_RETRY_INTERVAL = 1000;//Milliseconds

// Header values
const SDK_VERSION = '0.19.0';
const SDK_VERSION = '0.19.1';
const STORAGE_API_LATEST_VERSION = '2016-05-31';
const DATA_SERVICE_VERSION_VALUE = '3.0';
const MAX_DATA_SERVICE_VERSION_VALUE = '3.0;NetFx';
Expand Down
3 changes: 2 additions & 1 deletion src/Common/Internal/Utilities.php
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,8 @@ public static function rfc1123ToDateTime($date)
*/
public static function isoDate(\DateTimeInterface $date)
{
$date = (clone $date)->setTimezone(new \DateTimeZone('UTC'));
$date = clone $date;
$date = $date->setTimezone(new \DateTimeZone('UTC'));

return str_replace('+00:00', 'Z', $date->format('c'));
}
Expand Down
2 changes: 0 additions & 2 deletions tests/Unit/Blob/Models/CopyBlobOptionsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,6 @@ public function testSetIsIncrementalCopy()
}

/**
* @covers MicrosoftAzure\Storage\Blob\Models\CopyBlobFromURLOptions::setSourceSnapshot
* @covers MicrosoftAzure\Storage\Blob\Models\CopyBlobFromURLOptions::getSourceSnapshot
* @covers MicrosoftAzure\Storage\Blob\Models\CopyBlobOptions::setSourceSnapshot
* @covers MicrosoftAzure\Storage\Blob\Models\CopyBlobOptions::getSourceSnapshot
*/
Expand Down

0 comments on commit e1702ae

Please sign in to comment.