6
6
7
7
class MplusQAPIclient
8
8
{
9
- const CLIENT_VERSION = '0.3.0 ' ;
9
+ const CLIENT_VERSION = '0.3.1 ' ;
10
10
11
11
var $ MIN_API_VERSION_MAJOR = 0 ;
12
12
var $ MIN_API_VERSION_MINOR = 3 ;
@@ -904,6 +904,12 @@ public function parseGetTableOrderResult($soapGetTableOrderResult) {
904
904
if (isset ($ soapGetTableOrderResult ->order )) {
905
905
$ soapOrder = $ soapGetTableOrderResult ->order ;
906
906
$ order = objectToArray ($ soapOrder );
907
+ if (isset ($ order ['financialDate ' ])) {
908
+ $ order ['financialDate ' ] = $ this ->parseMplusDate ($ order ['financialDate ' ]);
909
+ }
910
+ if (isset ($ order ['entryTimestamp ' ])) {
911
+ $ order ['entryTimestamp ' ] = $ this ->parseMplusDateTime ($ order ['entryTimestamp ' ]);
912
+ }
907
913
if (isset ($ order ['lineList ' ]['line ' ])) {
908
914
$ order ['lineList ' ] = $ order ['lineList ' ]['line ' ];
909
915
}
@@ -1580,6 +1586,11 @@ public function convertMplusDateTime($timestamp)
1580
1586
'day ' => date ('j ' , $ timestamp ),
1581
1587
'mon ' => date ('n ' , $ timestamp ),
1582
1588
'year ' => date ('Y ' , $ timestamp ),
1589
+ 'hour ' => date ('H ' , $ timestamp ),
1590
+ 'min ' => date ('i ' , $ timestamp ),
1591
+ 'sec ' => date ('s ' , $ timestamp ),
1592
+ 'isdst ' => false ,
1593
+ 'timezone ' => 0 ,
1583
1594
);
1584
1595
} // END convertMplusDateTime()
1585
1596
@@ -1602,11 +1613,6 @@ public function convertMplusDate($timestamp)
1602
1613
'day ' => date ('j ' , $ timestamp ),
1603
1614
'mon ' => date ('n ' , $ timestamp ),
1604
1615
'year ' => date ('Y ' , $ timestamp ),
1605
- 'hour ' => date ('H ' , $ timestamp ),
1606
- 'min ' => date ('i ' , $ timestamp ),
1607
- 'sec ' => date ('s ' , $ timestamp ),
1608
- 'isdst ' => false ,
1609
- 'timezone ' => 0 ,
1610
1616
);
1611
1617
} // END convertMplusDate()
1612
1618
0 commit comments