Commit 992c71a5 authored by Mark Harding's avatar Mark Harding

(fix): must use ms not seconds for timestamp

1 merge request!236epic/referrals
Pipeline #71665856 running with stages
......@@ -48,7 +48,7 @@ class ReferralDelegate
*/
private function issueContributionScore(User $user) : void
{
$ts = strtotime('midnight');
$ts = strtotime('midnight') * 1000;
$contribution = new Contribution();
$contribution
->setMetric('referrals_welcome')
......
......@@ -63,7 +63,7 @@ class ReferralDelegateSpec extends ObjectBehavior
&& $contribution->getScore() === 50
&& $contribution->getAmount() === 1
&& $contribution->getUser()->guid === 456
&& $contribution->getTimestamp() === strtotime('midnight');
&& $contribution->getTimestamp() === strtotime('midnight') * 1000;
}))
->willReturn(true);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment