11/13/2017 at 10:22 am
#440966
Keymaster
@ Al
Ok, the coercion into a number is what must be throwing the error.
Can you do a var dump of $t1, $t2, str_replace( ':', '', $t1 ) and str_replace( ':', '', $t2 )?
What is the data and time format you have set in the WordPress General settings?
