john tindell
Apr 11th, 2005, 05:54 PM
Hey the MySQL server my site is hosted on is about 5 hours behind GMT, I want the dates on my site displayed as GMT. Does anyone know of a way that i can Select a GMT correct time from the database?
The query I use to get the date field at the moment is
DATE_FORMAT(time,"%h:%i%p") as time
This would return date as "06:58PM" rather than "11:58PM"
I would much rather find a MySQL solution rather than changing the date via PHP.
Thanks
The query I use to get the date field at the moment is
DATE_FORMAT(time,"%h:%i%p") as time
This would return date as "06:58PM" rather than "11:58PM"
I would much rather find a MySQL solution rather than changing the date via PHP.
Thanks