|
|
|
@ -148,7 +148,10 @@ if ($result['rows'] > 0)
|
|
|
|
|
{
|
|
|
|
|
if ('pgsql'==$CONF['database_type'])
|
|
|
|
|
{
|
|
|
|
|
$row['modified']=gmstrftime('%c %Z',$row['modified']);
|
|
|
|
|
//. at least in my database, $row['modified'] already looks like : 2009-04-11 21:38:10.75586+01,
|
|
|
|
|
// while gmstrftime expects an integer value. strtotime seems happy though.
|
|
|
|
|
//$row['modified']=gmstrftime('%c %Z',$row['modified']);
|
|
|
|
|
$row['modified'] = date('Y-m-d H:i', strtotime($row['modified']));
|
|
|
|
|
$row['active']=('t'==$row['active']) ? 1 : 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -186,9 +189,9 @@ if ($result['rows'] > 0)
|
|
|
|
|
{
|
|
|
|
|
if ('pgsql'==$CONF['database_type'])
|
|
|
|
|
{
|
|
|
|
|
//var_dump($row);
|
|
|
|
|
$row['created']=gmstrftime('%c %Z',strtotime($row['created']));
|
|
|
|
|
$row['modified']=gmstrftime('%c %Z',strtotime($row['modified']));
|
|
|
|
|
// XXX
|
|
|
|
|
$row['modified'] = date('Y-m-d H:i', strtotime($row['modified']));
|
|
|
|
|
$row['created'] = date('Y-m-d H:i', strtotime($row['created']));
|
|
|
|
|
$row['active']=('t'==$row['active']) ? 1 : 0;
|
|
|
|
|
if($row['v_active'] == NULL) {
|
|
|
|
|
$row['v_active'] = 'f';
|
|
|
|
|