Reply to how can I use getdate(...) excluding TZ.

Your name:

Reply:


Posted by FFMG on 05/02/07 07:03

Hi,

My timezone is GMT +2
So when I do a
$date = getdate( 0 );

I get:

$date =
{
['seconds'] (integer) = 0
['minutes'] (integer) = 0
['hours'] (integer) = 2 //<-- Hour is not 0 but +2
['mday'] (integer) = 1
['wday'] (integer) = 4
['mon'] (integer) = 1
['year'] (integer) = 1970
['yday'] (integer) = 0
['weekday'] (string) = "Thursday"
['month'] (string) = "January"
['0'] (integer) = 0
}

I cannot do:
$date = getdate( 0 - (2*3600) );
as negative numbers are not accepted, (on the window server).

So how can I do getdate( 0 ) and return the value without it been
converted by the server TZ.
Using setlocal(...) is also a bit of a Hacky kind of way of doing
things.

FFMG


--

'webmaster forum' (http://www.httppoint.com) | 'webmaster Directory'
(http://www.webhostshunter.com/) | 'Recreation Vehicle insurance'
(http://www.insurance-owl.com/other/car_rec.php)
'Free URL redirection service' (http://urlkick.com/)
------------------------------------------------------------------------
FFMG's Profile: http://www.httppoint.com/member.php?userid=580
View this thread: http://www.httppoint.com/showthread.php?t=14320

Message Posted via the webmaster forum http://www.httppoint.com, (Ad revenue sharing).

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация