I have a strange problem, maybe you can help:
I am trying to convert the date to GMT, and this is what I am doing:
$date = '2010-05-27 23:02:01';
$gmt_date = gmdate('Y-m-d H:i:s', $date );
but the output $gmt_dateis this:
1970-01-01 00:33:31
What am I doing wrong?
source
share