GMT

This is a discussion on GMT within the PHP General forums, part of the PHP Programming Forums category; Hi, My hosting provider is located somewhere in Houston, TX (EV1). I am using PHP and MySQL and need to ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-11-2004
Hassan Shaikh
 
Posts: n/a
Default GMT

Hi,

My hosting provider is located somewhere in Houston, TX (EV1). I am using PHP and MySQL and need to store all dates/time in GMT (considering DST also). Appreciate any help!

Once the date/time is in GMT, it would be easier for me to display the date base on user preference (time zone difference).

Thanks.


Hassan

Reply With Quote
  #2 (permalink)  
Old 01-11-2004
Manuel VáZquez Acosta
 
Posts: n/a
Default Re: GMT

As far as I know time() function returns the Unix timestamp which is GMT
measured; althought date() function does the GMT convertion to the local
timezone. You can store the result of time and then, modify the TZ
environment var to matchs user timezone.

Manu.

"Hassan Shaikh" <hassan@syberdesk.com> wrote in message
news:000a01c3d84d$fe2d02f0$442658ca@MYBOX...
Hi,

My hosting provider is located somewhere in Houston, TX (EV1). I am using
PHP and MySQL and need to store all dates/time in GMT (considering DST
also). Appreciate any help!

Once the date/time is in GMT, it would be easier for me to display the date
base on user preference (time zone difference).

Thanks.


Hassan
Reply With Quote
  #3 (permalink)  
Old 01-11-2004
Sascha Kaufmann
 
Posts: n/a
Default Re: [PHP] GMT

Hello,

you can use gmdate()

http://ch2.php.net/gmdate

regards
Sascha

Hassan Shaikh wrote:

> Hi,
>
> My hosting provider is located somewhere in Houston, TX (EV1). I am using PHP and MySQL and need to store all dates/time in GMT (considering DST also). Appreciate any help!
>
> Once the date/time is in GMT, it would be easier for me to display the date base on user preference (time zone difference).
>
> Thanks.
>
>
> Hassan
>

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:41 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0