Page 1 of 1

Converting a user inputed time and date to GMT time

Posted: Thu Apr 08, 2010 1:51 am
by Mr Tech
This is probably a simple answer. I searched but couldn't find what I was looking for...

If someone in the GMT + 10 time zone inputs a date (e.g: 2010-08-01 23:09:33) which I then convert to a TIMESTAMP (strtotime()), how do I convert that to GMT time?

Re: Converting a user inputed time and date to GMT time

Posted: Thu Apr 08, 2010 4:04 am
by requinix
Use a GMT function like gmdate.