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

bdawg8569’s picture

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

DrWahoo’s picture

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.

bdawg8569’s picture

I'm not sure i understand. It only updates upon page refresh, but that is not related to logging in as an admin.