My problem: the date I receive from getdate() is two hours ahead of CST. Can someone help me understand how to subtract two hours? My code for the variable looks like this:
Code: Select all
$curDate = date('Y-m-d', mktime(getdate()));Ross
Moderator: General Moderators
Code: Select all
$curDate = date('Y-m-d', mktime(getdate()));Code: Select all
$curDate = date('Y-m-d', gmmktime() + ($timezone * 60 * 60));