Skip to content

Commit

Permalink
Merge pull request #135 from ClementWalt/master
Browse files Browse the repository at this point in the history
Modification parsing date début/fin de garantie wortmann_ag
  • Loading branch information
tsmr authored Apr 24, 2024
2 parents b438b52 + a880ebf commit dc6d6bd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions inc/wortmann_ag.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ public function getSupplierInfo(
*/
public function getBuyDate($contents)
{
$field = "but de la garantie";
$field = "but de la service";
$searchstart = stristr($contents, $field);
$myDate = substr($searchstart, 27, 10);
$myDate = substr($searchstart, 26, 10);

$myDate = trim($myDate);
$myDate = str_replace('/', '-', $myDate);
Expand Down Expand Up @@ -101,9 +101,9 @@ public function getStartDate($contents)
*/
public function getExpirationDate($contents)
{
$field = "Fin de garantie";
$field = "Fin de service";
$searchstart = stristr($contents, $field);
$myDate = substr($searchstart, 24, 10);
$myDate = substr($searchstart, 23, 10);

$myDate = trim($myDate);
$myDate = str_replace('/', '-', $myDate);
Expand Down

0 comments on commit dc6d6bd

Please sign in to comment.