Good fix, Beel, I was thinking about this problem not so long ago, myself.
But then again, Beel, doesn’t your modifiication take away the GMT_offset totally. This way it would change over fine for you at your location, but the original way switches over when the GMT time says it’s a new day. Pick your own, I guess 🙂
Thread Starter
Anonymous
Great. Thanks for the fix, Beel.
2fargon, but I don’t live in Greenwich. Seriously though, I shouldn’t be attempting to answer this until I am at my computer and can test it, but from the above the calendar uses local time and then adds the gmt offset. Perhaps a more elegant approach consistent to the changeover to gmt could be?:
if ($day == gmdate(‘j’, (time() + (get_settings(‘gmt_offset’) * 3600))) && $thismonth == gmdate(‘m’, time()+(get_settings(‘gmt_offset’) * 3600)))
Thread Starter
Anonymous
as i came across the similar problem, i want to make sure that i change the setting in the right file. is it on line 468 of the template-funtions-general.php in the directory wp-include? (i’m asking this because there’s no mention of the file name in the above postings.) thank you.
Just fixed this in CVS.
Thanks for bringing it to our attention!