Alternatively, what about
gmmktime(0,0,0,$month,$day,$year)+date('Z')+60*60*date('I')? With the
limited testing that I've done on that, it seems to work, too...
As for why I'm using gmdate - I'm trying to modify an existing
application, and am trying to use an existing function that already
uses gmdate. I don't want to change gmdate to date because, although
that might (or might not; I haven't tried it), I'd risk breaking other
things that used that same function...
Timezone artefact. Don't mix mktime() and gmdate(). Use mktime() and
date(), or gmmktime() and gmdate(), depending on what the parameters
represent. See http://php.net/gmmktime
--
E. Dronkert