Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
-RAW- Posted February 12, 2016 Posted February 12, 2016 Posted on the other forum this question but no luck from other devs, so ill ask here. On 3.4 we could set up a task to run for example sundays, can it be done on 4.1 or is there anyway i can work around to do this ?
Marcher Technologies Posted February 17, 2016 Posted February 17, 2016 What you could do, if the day of week actually matters, is set it to run once a day and check manually in the code. However, there's the problem of locale affecting the actual day names, so the only way to get a solid check after digging seems to be something like: $dayOfWeek = \jddayofweek( \unixtojd( ) ); if($dayOfWeek === 0) { //it's sunday. } please note, this is untested, just what I was able to find digging through the php manual looking for a way to determine the day of the week without the locale coming into play.
teraßyte Posted February 17, 2016 Posted February 17, 2016 I'd certainly love this to see this added back instead of us having to add hacks in the code to run it only on specific days.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.