messenger-monitor-bundle
messenger-monitor-bundle copied to clipboard
Duration not decoded correctly for longer tasks
Tasks running for more than 1s are not displayed correctly
Using version ^2.4 for knplabs/knp-time-bundle
Same in the Snapshot box
That's weird - what about the ago messages, are they shown correctly? Any details in the web debug toolbar's translation panel?
It all comes from the fact that we haven't configured translation in our app. The whole Scheduler section crashes with An exception has been thrown during the rendering of a template ("The "app.locale" variable is not available.") in schedule.html.twig.
I tried adding minimal localization config to the app (below), but then other issues arise about null arrays and I didn't have the time to chase all of them.
twig:
globals:
app:
locale: 'en' # Or whatever default language you prefer
Hmm, ok, I was a bit perturbed that knp time bundle requires translation. I might look into removing this requirement.
In the meantime, you should be able to remove knp time bundle - it's an optional dependency.
Without knplabs/knp-time-bundle the duration is rendered correctly.
Schedule still won't render due to app.locale
Understand now - #150 should fix.
v0.5.3 contains this fix.
I also had translations disabled in the framework config, that did the trick for the |ago filter 😅
I see, so you had Symfony/translator installed but actively disabled?
Yeah, I didn't spot it before
translator:
enabled: false