From: Paul R. <pa...@qu...> - 2004-06-06 00:49:58
|
Unless I'm missing something completely, the current functionality = appears correct. Line 158, is part of csv_format_date_submitted($p_date_submitted), and should return a date, based on when a bug was submitted. Config_get = takes either one or two parameters ( a config item, in this case 'short_date_format', and if a second parameter is included a default to = be returned if short_date_format is not defined. In the current code, it will return date ('m-d-y',$p_date_submitted), = which is correct. ( your modification would give date('m-d-y'); for me, i.e. = it will always return the current date/time for all bugs in a csv export. Could you provide an example csv export you was getting that was = incorrect, which you are trying to fix? Paul > Hi, > Here a patch for syntax error in /core/csv_api.php : >=20 > cvs diff csv_api.php (in directory D:\CVSREPO\root1\mantisbt\core\) > Index: csv_api.php > = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > RCS file: /cvsroot/mantisbt/mantisbt/core/csv_api.php,v > retrieving revision 1.3 > diff -r1.3 csv_api.php > 1c1 > < <?php > --- > > =EF=BB=BF<?php > 158c158 > < return date( config_get( 'short_date_format'=20 > ), $p_date_submitted ); > --- > > return date( config_get( 'short_date_format',=20 > > $p_date_submitted ) ); > 194c194 > < return date( config_get( 'short_date_format'=20 > ), $p_last_updated ); > --- > > return date( config_get( 'short_date_format',=20 > > $p_last_updated ) ); > 220c220 > < ?> > \ No newline at end of file > --- >=20 > -- > Regards, > Eric Malauss=E9na mailto:eri...@la... >=20 >=20 >=20 > ------------------------------------------------------- > This SF.Net email is sponsored by the new InstallShield X. > From Windows to Linux, servers to mobile, InstallShield X is the one > installation-authoring solution that does it all. Learn more and > evaluate today! http://www.installshield.com/Dev2Dev/0504 > _______________________________________________ > Mantisbt-dev mailing list > Man...@li... > https://lists.sourceforge.net/lists/listinfo/mantisbt-dev >=20 >=20 |