DBI returned timestamp does not include seconds

Querying SQL server.

Data in SQL Server is

7/31/2007 2:37:51 PM

Returned data from perl-dbi is

Jul 31 2007 02:37PM

There's missing seconds in the output. Anyone knows why?
Can I please get a clue here?
Ow.Mun.Heng [ Do, 16 August 2007 12:42 ] [ ID #1797245 ]

Re: DBI returned timestamp does not include seconds

On Thu, 2007-08-16 at 18:42 +0800, Ow Mun Heng wrote:
> Querying SQL server.
>
> Data in SQL Server is
>
> 7/31/2007 2:37:51 PM
>
> Returned data from perl-dbi is
>
> Jul 31 2007 02:37PM

Nailed it down to DBD::Sybase issue and posting here for the archives..

fix is to put in
$dbh->{syb_date_fmt} = 'ISO';

as a parameter..
Ow.Mun.Heng [ Di, 21 August 2007 03:47 ] [ ID #1801682 ]
Perl » perl.dbi.users » DBI returned timestamp does not include seconds

Vorheriges Thema: DBI DBD-ODBC
Nächstes Thema: Announce: DBD-Unify-0.65