summaryrefslogtreecommitdiff
path: root/vendor/aws/aws-sdk-php/src/Api/TimestampShape.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/aws/aws-sdk-php/src/Api/TimestampShape.php')
-rw-r--r--vendor/aws/aws-sdk-php/src/Api/TimestampShape.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/vendor/aws/aws-sdk-php/src/Api/TimestampShape.php b/vendor/aws/aws-sdk-php/src/Api/TimestampShape.php
index 7ef2646..464f92f 100644
--- a/vendor/aws/aws-sdk-php/src/Api/TimestampShape.php
+++ b/vendor/aws/aws-sdk-php/src/Api/TimestampShape.php
@@ -24,7 +24,7 @@ class TimestampShape extends Shape
*/
public static function format($value, $format)
{
- if ($value instanceof \DateTime) {
+ if ($value instanceof \DateTimeInterface) {
$value = $value->getTimestamp();
} elseif (is_string($value)) {
$value = strtotime($value);