Skip to content

Commit

Permalink
Fixed date trait. (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexSkrypnyk authored Jul 8, 2018
1 parent c3390bd commit 9a10cae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DateTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ trait DateTrait {
public static function dateProcess($value, $now = NULL) {
// If `now` is not provided, round to the current hour to make sure that
// assertions are running within the same timeframe (for long tests).
$now = $now ? $now : strtotime(date('Y-m-d 12:30:00', time()));
$now = $now ? $now : strtotime(date('Y-m-d H:i:00', time()));

return preg_replace_callback('/\[([^:]+):([^\]\[\#]+)(?:\#([^\]\[]+))?\]/', function ($matches) use ($now) {
$timestamp = strtotime($matches[2], $now);
Expand Down

0 comments on commit 9a10cae

Please sign in to comment.