|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-08-08 19:52 UTC] sniper@php.net
[2005-09-20 23:11 UTC] sniper@php.net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 23:00:01 2025 UTC |
Description: ------------ I have 2 machines WinXp(test server): php 4.4.0, apache 1.3.33, firebird-1.5.2 Linux(working serv): php 4.4.0, apache 1.3.33, firebird-1.5.2 (php compilled with interbase and bcmath options) I have simple firebird table: CREATE TABLE ZAP_KNIGA ( TIME_ TIME NOT NULL, PRIMECH VARCHAR(500)); Some data in table rows (TIME_ colomn): 10:00:00 10:34:02 11:05:10 (this is right values in db ... cheked up with IBExpert). My time zone: WinXP: GMT+3 Moscow Linux: [root@darkstar tests]# date ??? ??? 8 17:02:19 MSD 2005 I have php script: $sql_str = 'SELECT TIME_, PRIMECH FROM ZAP_KNIGA'; $sth = ibase_query($sql_str) or die('error'); while ($row = ibase_fetch_assoc($sth)) echo $row['TIME_'].' '.$row['PRIMECH'].'<br>'; My problem: When i go to my test site on winxp, explorer shows correct rows: 10:00:00 10:34:02 11:05:10 When i put my script on Linux serv, explorer shows wrong rows: 23:15:52 23:15:52 23:15:52 (one value for all rows!!!!!!) When i go to linux site from linux console using 'links' rows is WRONG! The first idea was something wrong in time zones client and server machines, but php shows one value in all rows and doesnt calculate GMT offsets from each time value. How can I resolv this problem ? P.S: Sorry my English...