Warning: date() expects parameter 2 to be long/ functions.php on line 104

Getting this alert..

Warning: date() expects parameter 2 to be long, object given in
/home/physicoolco/public_html/wp-includes/functions.php on line 104

Warning: date() expects parameter 2 to be long, object given in
/home/physicoolco/public_html/wp-includes/functions.php on line 106

Warning: date() expects parameter 2 to be long, object given in
/home/physicoolco/public_html/wp-includes/functions.php on line 108

Warning: date() expects parameter 2 to be long, object given in
/home/physicoolco/public_html/wp-includes/functions.php on line 109

Why are these warnings being shown?

line 104 before I changed it:

$datemonth = $wp_locale->get_month( date( 'm', $i ) );

I was getting the above alert

Line 104 after I changed it:

$datemonth = $wp_locale->get_month( date("m/d/y") );`

I am getting no alert; just a blank area where the date should be..

Read more here: Warning: date() expects parameter 2 to be long/ functions.php on line 104

Leave a Reply

Your email address will not be published. Required fields are marked *