Skip to content

Commit 86b22f3

Browse files
[TASKSCLOUD-249] - Changed regex parser for server response data deserializing.
1 parent 6f97093 commit 86b22f3

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"description": "This repository contains Aspose.Tasks Cloud SDK for PHP source code. Aspose.Tasks Cloud SDK for PHP lets PHP developers manipulate or convert Microsoft Project documents hosted on a cloud platform quickly and easily.",
33
"name": "aspose-tasks-cloud/php-sdk",
44
"type": "library",
5-
"keywords" : ["aspose", "php", "aspose cloud", "mpp", "microsoft project", "ms project", "primavera"],
5+
"keywords" : ["aspose", "php", "aspose cloud", "mpp", "microsoft project", "ms project", "primavera", "microsoft project online", "microsoft project server"],
66
"homepage": "https://github.com/aspose-tasks-cloud/aspose-tasks-cloud-php",
77
"license": "MIT",
88
"authors": [

src/Aspose/Tasks/Configuration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ class Configuration
135135
* Version of Aspose.Tasks Cloud API
136136
*
137137
*/
138-
protected $clientVersion = '19.4';
138+
protected $clientVersion = '19.10';
139139

140140
/*
141141
* Constructor

src/Aspose/Tasks/ObjectSerializer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,8 +271,8 @@ public static function deserialize($data, $class, $httpHeaders = null)
271271
if (!empty($data)) {
272272

273273
// Parse MS date format ()
274-
if(preg_match('/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})$/', $data)) {
275-
$dateInUtc = $data . "+0000";
274+
if(preg_match('/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})*/', $data, $matches)) {
275+
$dateInUtc = $matches[0] . "+0000";
276276
return \DateTime::createFromFormat(DATE_ISO8601, $dateInUtc);
277277
}
278278

0 commit comments

Comments
 (0)