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

Wrong day at list of tasks #42

Open
humanoidvani opened this issue May 17, 2018 · 0 comments
Open

Wrong day at list of tasks #42

humanoidvani opened this issue May 17, 2018 · 0 comments

Comments

@humanoidvani
Copy link

mktime(0, 0, 0, 0, (int)$cron['day_of_week'])

5th param have to be date("j") not date("w")

$cron['day_of_week'] = ($cron['day_of_week'] == -1) ? self::$module->l('Every day of the week', 'CronJobsForms') : self::$module->l(date('l', mktime(0, 0, 0, 0, (int)$cron['day_of_week'])));

https://github.com/PrestaShop/cronjobs/blob/master/classes/CronJobsForms.php
line: 308

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

1 participant