diff --git a/addressbook/inc/class.addressbook_bo.inc.php b/addressbook/inc/class.addressbook_bo.inc.php index 997387566e..542abcbbcc 100755 --- a/addressbook/inc/class.addressbook_bo.inc.php +++ b/addressbook/inc/class.addressbook_bo.inc.php @@ -693,7 +693,7 @@ class addressbook_bo extends addressbook_so { if (isset($data[$name])) { - $data[$name] = egw_time::server2user($data[$name], $date_format); + $data[$name] = egw_time::user2server($data[$name], $date_format); } } return $data; diff --git a/phpgwapi/inc/class.accounts.inc.php b/phpgwapi/inc/class.accounts.inc.php index ebd9bbe27d..4a0d59bcb5 100644 --- a/phpgwapi/inc/class.accounts.inc.php +++ b/phpgwapi/inc/class.accounts.inc.php @@ -1,11 +1,6 @@ complete rewrite in 6/2006 and earlier modifications @@ -31,18 +26,7 @@ * The backend only implements the read, save, delete, name2id and the {set_}members{hips} methods. * The account class implements all other (eg. name2id, id2name) functions on top of these. * - * @link http://www.egroupware.org - * @author Ralf Becker complete rewrite in 6/2006 - * - * Implements the (now depricated) interfaces on the former accounts class written by - * Joseph Engo and Bettina Gille - * Copyright (C) 2000 - 2002 Joseph Engo, Copyright (C) 2003 Joseph Engo, Bettina Gille - * - * @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License - * @package api - * @subpackage accounts - * @access public - * @version $Id$ + * read and search return timestamps (account_(created|modified|lastlogin) in server-time! */ class accounts { diff --git a/phpgwapi/inc/class.accounts_sql.inc.php b/phpgwapi/inc/class.accounts_sql.inc.php index d1abb98555..8d67d90e5f 100644 --- a/phpgwapi/inc/class.accounts_sql.inc.php +++ b/phpgwapi/inc/class.accounts_sql.inc.php @@ -405,8 +405,9 @@ class accounts_sql 'account_email' => $contact['email'], 'person_id' => $contact['id'], 'account_status' => $contact['account_status'], - 'account_created' => $contact['created'], - 'account_modified' => $contact['modified'], + // addressbook_bo::search() returns everything in user-time, need to convert to server-time + 'account_created' => egw_time::user2server($contact['created']), + 'account_modified' => egw_time::user2server($contact['modified']), ); } }