I have php code inserted in widget, it works but right now (at this moment) function date(j) returns 22..
when I run the same (copypaste) php code in the separate file on the same server - it's 23.. :)
How is it possible? Widget is not cached (I changed echo text in the code - can see the update). But why does the date works that way?