From bbaac7e4860be6d2595ce9e45b86e6cb94ecfaa8 Mon Sep 17 00:00:00 2001 From: jmontoyaa Date: Mon, 31 Oct 2016 13:20:48 +0100 Subject: [PATCH] Use api_get_utc_datetime() --- main/inc/lib/usermanager.lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/inc/lib/usermanager.lib.php b/main/inc/lib/usermanager.lib.php index ddacf390b7..ebd07b20b0 100755 --- a/main/inc/lib/usermanager.lib.php +++ b/main/inc/lib/usermanager.lib.php @@ -4009,7 +4009,7 @@ class UserManager relation_type <> '.USER_RELATION_TYPE_RRHH.' '; $result = Database::query($sql); $row = Database :: fetch_array($result, 'ASSOC'); - $current_date = date('Y-m-d H:i:s'); + $current_date = api_get_utc_datetime(); if ($row['count'] == 0) { $sql = 'INSERT INTO '.$tbl_my_friend.'(friend_user_id,user_id,relation_type,last_edit)