Skip to content

Removed date filter from failed_list.html.twig #43

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

Merged
merged 1 commit into from
Mar 27, 2013
Merged

Removed date filter from failed_list.html.twig #43

merged 1 commit into from
Mar 27, 2013

Conversation

ruudk
Copy link
Collaborator

@ruudk ruudk commented Mar 27, 2013

Otherwise you get this error:

An exception has been thrown during the rendering of a template ("DateTime::__construct(): Failed to parse time string (di mrt 26 12:46:53 UTC 2013) at position 0 (d): The timezone could not be found in the database") in BCCResqueBundle:Default:failed_list.html.twig at line 21.

This is because PHP-Resque uses a localized timestamp:

$data->failed_at = strftime('%a %b %d %H:%M:%S %Z %Y');

Otherwise you get this error:

An exception has been thrown during the rendering of a template ("DateTime::__construct(): Failed to parse time string (di mrt 26 12:46:53 UTC 2013) at position 0 (d): The timezone could not be found in the database") in BCCResqueBundle:Default:failed_list.html.twig at line 21.
@tonypiper
Copy link
Collaborator

Grrr. Works OK with 'en' as a locale. Might it be worth submitting a PR to php-resque to use ISO 8601 for failed_at? Meanwhile, I will merge and tag.

tonypiper added a commit that referenced this pull request Mar 27, 2013
Removed date filter from failed_list.html.twig
@tonypiper tonypiper merged commit 694f148 into michelsalib:master Mar 27, 2013
@tonypiper
Copy link
Collaborator

tagged v1.1.6

@ruudk
Copy link
Collaborator Author

ruudk commented Mar 27, 2013

There is already a PR for this: chrisboulton/php-resque#95

@tonypiper
Copy link
Collaborator

Great. Hope it gets merged soon.

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

Successfully merging this pull request may close these issues.

2 participants