responsiv / campaign-plugin

[PREMIUM] Send professional campaign messages to your subscribers.
http://octobercms.com/plugin/responsiv-campaign
5 stars 2 forks source link

Scheduled launch #19

Closed gmlnchv closed 8 years ago

gmlnchv commented 8 years ago

Having an issue with Scheduled campaigns.

Set up a crob job with the correct path to artisan on the server. Cron is working but the campaigns don't seem to be queueing. Running php artisan campaign:run prints No outstanding activities to perform but we have multiple campaigns still pending. Everything works locally though.

gmlnchv commented 8 years ago

Cron is setup via crontab -e: * * * * * php /var/www/html/artisan schedule:run >> /dev/null 2>&1

daftspunk commented 8 years ago

Please provide step by step replication instructions. Obviously the scheduled date must pass before the campaign will launch.

gmlnchv commented 8 years ago

Thanks @daftspunk. Looks like the real issue is that the plugin uses UTC time to schedule campaigns rather than local time. Campaigns do get sent out but 12 hours behind. Is Campaign Manager supposed to use local time by default or is there a way to make it use local time to send campaigns?

daftspunk commented 8 years ago

This is likely because the date is being input as UTC as well. Change your timezone settings under user preferences.

gmlnchv commented 8 years ago

Thanks, that was it! Updated the timezone in Backend Preferences and it worked.