Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RunContext->duration becomes negative at 02:xx on CEST to CET turning… #71

Merged
merged 1 commit into from
Oct 30, 2022
Merged

Conversation

gassan
Copy link
Contributor

@gassan gassan commented Oct 30, 2022

… day (for example on 30.10.2022 02:05 CEST Europe/Berlin)

Exception backtrace:

{
    "class": "TypeError",
    "message": "Return value of Zenstruck\\ScheduleBundle\\Schedule\\RunContext::getFormattedDuration() must be of the type string, null returned",
    "code": 0,
    "file": "/XYZ/vendor/zenstruck/schedule-bundle/src/Schedule/RunContext.php:47",
    "trace": [
        "/XYZ/vendor/zenstruck/schedule-bundle/src/EventListener/ScheduleLoggerSubscriber.php:120",
        "/XYZ/vendor/symfony/event-dispatcher/EventDispatcher.php:270",
        "/XYZ/vendor/symfony/event-dispatcher/EventDispatcher.php:230",
        "/XYZ/vendor/symfony/event-dispatcher/EventDispatcher.php:59",
        "/XYZ/vendor/zenstruck/schedule-bundle/src/Schedule/ScheduleRunner.php:73",
        "/XYZ/vendor/zenstruck/schedule-bundle/src/Command/ScheduleRunCommand.php:70",
        "/XYZ/vendor/symfony/console/Command/Command.php:298",
        "/XYZ/vendor/symfony/console/Application.php:1046",
        "/XYZ/vendor/symfony/framework-bundle/Console/Application.php:96",
        "/XYZ/vendor/symfony/console/Application.php:299",
        "/XYZ/vendor/symfony/framework-bundle/Console/Application.php:82",
        "/XYZ/vendor/symfony/console/Application.php:171",
        "/XYZ/vendor/symfony/runtime/Runner/Symfony/ConsoleApplicationRunner.php:54",
        "/XYZ/vendor/autoload_runtime.php:35",
        "/XYZ/bin/console:11"
    ]
}

… day (for example on 30.10.2022 02:05 CEST Europe/Berlin)
@kbond kbond merged commit dd41eb6 into zenstruck:1.x Oct 30, 2022
@kbond
Copy link
Member

kbond commented Oct 30, 2022

Thanks @gassan!

@gassan
Copy link
Contributor Author

gassan commented Oct 31, 2022

I think it is possibly a bug on php side. Also reported here php/php-src#9857

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants