mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-06 09:38:23 +01:00
New: Function dol_now('tzuser') is now supported.
This commit is contained in:
@@ -119,7 +119,8 @@ function dol_now($mode='tzserver')
|
||||
else if ($mode == 'tzuser') // Time for now where the user is located
|
||||
{
|
||||
// TODO Should use the timezone of the user instead of timezone of server
|
||||
$ret=mktime();
|
||||
$tz=isset($_SESSION['dol_tz'])?$_SESSION['dol_tz']:0;
|
||||
$ret=gmmktime()+($tz*24*60*60);
|
||||
}
|
||||
return $ret;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user