|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-07-14 22:32 UTC] jah at cvs dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Dec 17 21:00:02 2025 UTC |
any select query from TIMESTAMP column of an InterBase table, e.g. <? $conn = ibase_connect("server:/path/dbase.gdb", "user", "pass", "WIN1250"); $rslt = ibase_query($conn, "select ORD_ID,ORD_EXPIRED from ORDERS;"); if (!$rslt): include "psupp/dberr.phtml"; exit; endif; ?> ... <table> <? while ($row = ibase_fetch_object($rslt)) echo "<tr><td>".$row->ORD_ID."<td>".$row->ORD_EXPIRED."\n"; ?> </table> ... The times displayed are always shifted by one hour with respect to the times stored in the database (e.g. 18:24 rather than 17:24). When I use 'select cast(ORD_EXPIRED as varchar(40)) as ORD_EXP2', the time is correct (but I cannot use ibase_timefmt then). The server is running RedHat Linux 6.2 (glibc 2.1.3) PHP configured with --with-interbase --with-apache=../apache_1.3.12 --enable-track-vars Apache 1.3.12 InterBase 6.0 beta (classic architecture) Timezone is set to Europe/Prague