mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-15 14:01:22 +01:00
Clean code
This commit is contained in:
@@ -1999,7 +1999,7 @@ function dol_now($mode='gmt')
|
||||
}*/
|
||||
else if ($mode == 'tzuser') // Time for now with user timezone added
|
||||
{
|
||||
//print 'eeee'.time().'-'.mktime().'-'.gmmktime();
|
||||
//print 'time: '.time().'-'.mktime().'-'.gmmktime();
|
||||
$offsettz=(empty($_SESSION['dol_tz'])?0:$_SESSION['dol_tz'])*60*60;
|
||||
$offsetdst=(empty($_SESSION['dol_dst'])?0:$_SESSION['dol_dst'])*60*60;
|
||||
$ret=(int) dol_now('gmt')+($offsettz+$offsetdst);
|
||||
|
||||
Reference in New Issue
Block a user