Skip to content

Commit

Permalink
Fix #15517: soap API datatype for DateTime
Browse files Browse the repository at this point in the history
Wrong datatype for DateTime  'dateTime' vs. 'xsd:dateTime'
results in an error during deserialization in .net

Signed-off-by: Damien Regad <damien.regad@merckgroup.com>
  • Loading branch information
wiggisser authored and dregad committed Feb 20, 2013
1 parent bc2620b commit 3980754
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/soap/mc_api.php
Expand Up @@ -38,7 +38,7 @@ static function newDateTimeVar( $p_value ) {
if ( class_exists('soapval') )
return new soapval( 'due_date', 'xsd:dateTime', $string_value );
else
return new SoapVar( $string_value, XSD_DATETIME, 'dateTime');
return new SoapVar( $string_value, XSD_DATETIME, 'xsd:dateTime');
}

static function newDateTimeString ( $p_timestamp ) {
Expand Down

0 comments on commit 3980754

Please sign in to comment.