X-Git-Url: https://git-public.kairo.at/?p=php-utility-classes.git;a=blobdiff_plain;f=testbed%2Fua_test.php;h=97309b3b84102bbcfa2b93d37603a335544bf793;hp=30b485a3d57fe98fcb5a164fb2e237fab9bf4816;hb=9c17eb15dcf9ffb7a08f50f34789757012d79b9e;hpb=4a778b7ef1e4bf6e2aaa31a83280cd3efface400 diff --git a/testbed/ua_test.php b/testbed/ua_test.php index 30b485a..97309b3 100644 --- a/testbed/ua_test.php +++ b/testbed/ua_test.php @@ -5,6 +5,9 @@ include("inchandler.inc"); $wrapper->pgtop("KaiRo's Browser-Test"); +// set default time zone - right now, always the one the server is in! +date_default_timezone_set('Europe/Vienna'); + $httpvars = $util->getHTTPvars(); if (strlen($httpvars["ua"])) { $ua = new userAgent($httpvars["ua"]); @@ -25,7 +28,10 @@ print("
The engine version is reported as "".$ua->getEngineVersion(). print("
The operating system is reported as "".$ua->getOS().""\n"); print("
The system platform is reported as "".$ua->getPlatform().""\n"); print("
The browser language is reported as "".$ua->getLanguage().""\n"); -if ($ua->hasEngine('gecko')) { print("
The Gecko date is reported as "".$ua->getGeckoDate().""\n"); } +if ($ua->hasEngine('gecko')) { + print("
The Gecko date is reported as "".$ua->getGeckoDate().""\n"); + print("
The full Gecko date/time is reported as "".date('r',$ua->getGeckoTime()).""\n"); +} print("

I conclude this must be ".$ua->getBrand()." ".$ua->getVersion()."\n"); print("
This is ".($ua->isBot()?"an":"no")." automated robot.\n");