Skip to content

Commit

Permalink
fix datetime format
Browse files Browse the repository at this point in the history
  • Loading branch information
stanstst committed Feb 18, 2020
1 parent 7247878 commit 4916ffa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/tests/Jam/Behavior/Promotable/Brand/PurchaseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function test_available_promotions()

$this->assertEquals(array(1, 2), $promotions->ids());

Jam::find('promotion', 1)->update_fields(array('expires_at' => strtotime('-2days')));
Jam::find('promotion', 1)->update_fields(array('expires_at' => date('Y-m-d H:i:s',strtotime('-2days'))));

$promotions = $behavior->available_promotions();

Expand Down

0 comments on commit 4916ffa

Please sign in to comment.