Subject | PHP and ibase_timefmt |
---|---|
Author | ian.mellor@legalisp.net |
Post date | 2001-08-13T08:23:03Z |
We have a (Dialect 3) Firebird/interbase database, accessed by php
(via adodb) and the dates are not begin returned as we would expect!
Even though ibase_timefmt('%Y-%m-%d %H:%M:%S') from php's ibase api is
called we are definately getting it as "m-d-y" and this is not what we
want!
In the short term i have altered function UnixDate in adodb.inc.php to
expect "m-d-y" for conversions but this is a nasty hack as we also use
MySql for some tasks and it is (correctly?) giving us Y-m-d.
Thanks in advance...i know this is probably more php related but the
php groups have been no help!
Ian
(via adodb) and the dates are not begin returned as we would expect!
Even though ibase_timefmt('%Y-%m-%d %H:%M:%S') from php's ibase api is
called we are definately getting it as "m-d-y" and this is not what we
want!
In the short term i have altered function UnixDate in adodb.inc.php to
expect "m-d-y" for conversions but this is a nasty hack as we also use
MySql for some tasks and it is (correctly?) giving us Y-m-d.
Thanks in advance...i know this is probably more php related but the
php groups have been no help!
Ian