1

I have echo this PHP code

echo gmdate("Y-m-d G:i:s");

Got this result:

2012-02-23 9:30:000

When i echo this PHP code

echo gmdate("Y-m-d G:i:s",strtotime("2012-02-23 15:00:00"));

got the result

But the actual gmt time for this is 2012-02-23 9:30:00 but iam getting

2012-02-23 20:30:00

Any mistake i have done?

Warrior
  • 5,168
  • 12
  • 60
  • 87

0 Answers0