Skip to content

Commit

Permalink
Merge pull request #13 from george-zakharov/master
Browse files Browse the repository at this point in the history
DateTime error fix, very thank @george-zakharov
  • Loading branch information
nguyenanhung authored Jun 1, 2023
2 parents 581d3d3 + 4aa39a4 commit 7c98fb6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fixed/nusoap_base.php
Original file line number Diff line number Diff line change
Expand Up @@ -929,7 +929,7 @@ function getmicrotime()
$sec = time();
$usec = 0;
}
$dtx = new DateTime("@$sec");
$dtx = new \DateTime("@$sec");

return
date_format($dtx, 'Y-m-d H:i:s') . '.' . sprintf('%06d', $usec);
Expand Down
2 changes: 1 addition & 1 deletion src/nusoap_base.php
Original file line number Diff line number Diff line change
Expand Up @@ -929,7 +929,7 @@ function getmicrotime()
$sec = time();
$usec = 0;
}
$dtx = new DateTime("@$sec");
$dtx = new \DateTime("@$sec");

return
date_format($dtx, 'Y-m-d H:i:s') . '.' . sprintf('%06d', $usec);
Expand Down

0 comments on commit 7c98fb6

Please sign in to comment.