I am trying to print PUBLISHED date or UPDATED date if post has been updated
Here is my php if statement
<?php
$u_time = the_time('U');
$u_modified_time = the_modified_time('U');
if ($u_modified_time > $u_time) {
echo "[UPDATED] "; the_modified_time('F j, Y'); echo " at "; the_modified_time(); echo " EST";}
else {
echo "[PUBLISHED] "; the_time('M jS Y'); echo " at "; the_time(); echo " EST"; }
?>
and here is what is printed
15479814021547981405[PUBLISHED] Jan 20th 2019 at 10:50 am EST
but this is what am expecting
[PUBLISHED] Jan 20th 2019 at 10:50 am EST
Not sure why this 15479814021547981405
part is being printed out
What do i do to take that part out?
Thanks