Skip to content

Commit

Permalink
Support for API v0.5.1
Browse files Browse the repository at this point in the history
Bugfix in conversion of date/times (again).
  • Loading branch information
Mplus Software committed Aug 20, 2014
1 parent 39e3c52 commit 8611b43
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions Mplusqapiclient.php
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@

class MplusQAPIclient
{
const CLIENT_VERSION = '0.5.0';
const CLIENT_VERSION = '0.5.1';

var $MIN_API_VERSION_MAJOR = 0;
var $MIN_API_VERSION_MINOR = 5;
var $MIN_API_VERSION_REVIS = 0;
var $MIN_API_VERSION_REVIS = 1;

var $MAX_API_VERSION_MAJOR = 0;
var $MAX_API_VERSION_MINOR = 5;
var $MAX_API_VERSION_REVIS = 0;
var $MAX_API_VERSION_REVIS = 1;

/**
* @var string
Expand Down Expand Up @@ -207,7 +207,7 @@ public function initClient()
}

// $this->client = new SoapClient('http://192.168.0.217/github/mplus-software/mplus-api-wsdl/MplusQapi.wsdl', $options);
$this->client = new SoapClient('https://api.mpluskassa.nl/MplusQapi-0.5.0.wsdl', $options);
$this->client = new SoapClient('https://api.mpluskassa.nl/MplusQapi-0.5.1.wsdl', $options);

if ( ! $this->skipApiVersionCheck) {
$this->checkApiVersion();
Expand Down Expand Up @@ -1751,13 +1751,8 @@ public function convertMplusDate($timestamp)
'day' => date('j', $timestamp),
'mon' => date('n', $timestamp),
'year' => date('Y', $timestamp),
'hour' => date('H', $timestamp),
'min' => date('i', $timestamp),
'sec' => date('s', $timestamp),
'isdst' => false,
'timezone' => 0,
);
} // END convertMplusDate()
} // END convertMplusDateTime()

//----------------------------------------------------------------------------

Expand All @@ -1767,8 +1762,13 @@ public function convertMplusDateTime($timestamp)
'day' => date('j', $timestamp),
'mon' => date('n', $timestamp),
'year' => date('Y', $timestamp),
'hour' => date('H', $timestamp),
'min' => date('i', $timestamp),
'sec' => date('s', $timestamp),
'isdst' => false,
'timezone' => 0,
);
} // END convertMplusDateTime()
} // END convertMplusDate()

//----------------------------------------------------------------------------

Expand Down

0 comments on commit 8611b43

Please sign in to comment.