By DrWahoo on
Hi I created a "Today is..." Block.. but for some reason it doesn't update the date unless I log in...
Here is the code I put in the block body...
date_default_timezone_set ("America/New_York");
echo "<b>".date('l')."</b>"."<br />";
echo date('F j, Y')."<br />";
echo date('h:i a T')."<br />"
Comments
Block visibiltiy settings?
Do you have the block configured to be visible on all pages for all roles? Works fine on my site whether i'm logged in or not.
Brian
No its only visible on the
No its only visible on the front page...check back in a few days. What happens is that it only updates when I as the admin login..and I may have logged in that day.
I'm not sure i understand. It
I'm not sure i understand. It only updates upon page refresh, but that is not related to logging in as an admin.