From 81f96b8913ed68f277ac8305d23f3370cd3ee98d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C5=A0pa=C4=8Dek?= Date: Wed, 2 Jun 2021 15:16:54 +0200 Subject: [PATCH] Add colon to non-UTC timestamps Required by the Table Storage Format spec Close #293 --- azure-storage-common/src/Common/Internal/Utilities.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-storage-common/src/Common/Internal/Utilities.php b/azure-storage-common/src/Common/Internal/Utilities.php index 158e920b4..fd9f4c6d8 100644 --- a/azure-storage-common/src/Common/Internal/Utilities.php +++ b/azure-storage-common/src/Common/Internal/Utilities.php @@ -433,7 +433,7 @@ public static function convertToEdmDateTime($value) $cloned = clone $value; $cloned->setTimezone(new \DateTimeZone('UTC')); - return str_replace('+0000', 'Z', $cloned->format("Y-m-d\TH:i:s.u0O")); + return str_replace('+00:00', 'Z', $cloned->format("Y-m-d\TH:i:s.u0P")); } /**