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

PHP strftime('%a %b %d %H:%M:%S %Z %Y') causes error in WEB GUI #159

Closed
ksaveras opened this issue Dec 23, 2013 · 3 comments
Closed

PHP strftime('%a %b %d %H:%M:%S %Z %Y') causes error in WEB GUI #159

ksaveras opened this issue Dec 23, 2013 · 3 comments

Comments

@ksaveras
Copy link

php code in worker
strftime('%a %b %d %H:%M:%S %Z %Y')

causes error when local time zone is used like EET or EEST (East European Time Zone)
JS code like new Date(date[run_at]) returns error of invalid date.

Suggest to use UTC zone or date('r') function if fits resque requirements.
image

@danhunsaker
Copy link
Contributor

PR #95 actually addresses this. You can pull it into your own project to apply it.

Alternately, the current version of PHP-Resque is written against an older version of Ruby Resque, so if you don't need the latest features on the Ruby side, you should be able to roll it back far enough to reach a point in time where it works with the unmodified PHP codebase. Until #95 gets merged in, of course.

@danhunsaker
Copy link
Contributor

Does that resolve your concern, or was there something else you wanted covered before this gets closed?

@ksaveras
Copy link
Author

This we can close

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

No branches or pull requests

2 participants