diff options
author | Andrew Dolgov <[email protected]> | 2023-10-20 16:44:35 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2023-10-20 16:44:35 +0300 |
commit | 8bec661288b276c98bdb0e773e5f4d5275dc4c87 (patch) | |
tree | 8617ebe581c62fc46a7881aa61801ebce9d3c603 /vendor/aws/aws-sdk-php/src/Api/TimestampShape.php | |
parent | 540438c2eb5452bacad30c247906bfa287f2da1d (diff) |
Diffstat (limited to 'vendor/aws/aws-sdk-php/src/Api/TimestampShape.php')
-rw-r--r-- | vendor/aws/aws-sdk-php/src/Api/TimestampShape.php | 2 |
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); |