Cron task with scheduled timestamp in the past
The reason is when you set only a time without date, the php function strtotime() by default add today as a date so if the time is “04:30”, the timestamp is in the past. I fixed like this : $timestamp = strtotime( $cron_sync_time ); if( $timestamp < time() ){ //if the time already past today … Read more