Results 1 to 2 of 2

Thread: Select Date as GMT?[RESOLVED]

Threaded View

  1. #1

    Thread Starter
    <?="Moderator"?> john tindell's Avatar
    Join Date
    Jan 2002
    Location
    Brighton, UK
    Posts
    1,099

    Resolved Select Date as GMT?[RESOLVED]

    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
    Code:
      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
    Last edited by john tindell; Apr 13th, 2005 at 03:00 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width