Re: [PHP] gmdate problem

2003-10-20 Thread - Edwin -
Hi,

On Tue, 21 Oct 2003 12:44:38 +0800
[EMAIL PROTECTED] wrote:

> 
> Hi all,  
>Having some problem with 'gmdate' here. However, the time
>doesn't match
> with the current time on the system. What could be the problem? Do I
> have to set any timezone or stuff like that?...Hope to get some help
> here. 

>From the manual: (http://www.php.net/manual/en/function.gmdate.php)

[quote]
  Identical to the date() function except that the time returned is
  Greenwich Mean Time (GMT).
[/quote]

So, I guess, you have to make sure first that your server (system) is
located inside the GMT time zone :)

- E -
__
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo!
http://bb.yahoo.co.jp/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] gmdate problem

2003-10-20 Thread Eugene Lee
On Tue, Oct 21, 2003 at 12:44:38PM +0800, [EMAIL PROTECTED] wrote:
: 
: Having some problem with 'gmdate' here. However, the time doesn't
: match with the current time on the system. What could be the problem?
: Do I have to set any timezone or stuff like that?...Hope to get some
: help here. 
: 
: Tue, 21st Oct 2003, 04:25
: 
: 

gmdate() returns the the GMT/UTC time (i.e. timezone 0).  Unless your
system's timezone is zero because it is in Greenwich, gmdate() does not
adjust its result to your local timezone and you will not get the answer
you expected.  What's wrong with date()?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] gmdate problem

2003-10-20 Thread irinchiang

Hi all,  
   Having some problem with 'gmdate' here. However, the time doesn't match
with the current time on the system. What could be the problem? Do I have to set
any timezone or stuff like that?...Hope to get some help here. 


Tue, 21st Oct 2003, 04:25




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php