8000 Relative time cannot be specified in seconds · Issue #228 · drevops/behat-steps · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Relative time cannot be specified in seconds #228
Closed
@richardgaunt

Description

@richardgaunt

We cannot run tests that are [relative:+5seconds] because of the way relative dates are created in the DateTrait

https://github.com/drevops/behat-steps/blob/main/src/DateTrait.php#L90

Currently:
$now = $now ?: strtotime(date('Y-m-d H:i:00', time()));

Should be:

$now = $now ?: strtotime(date('Y-m-d H:i:s', time()));

There might be a reason behind this that I am not aware - but happy to create a PR if its ok to change.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0