Merge pull request #28875 from W1W1-M/qual-list-new-action-time
QUAL use real time when creating action from list
This commit is contained in:
commit
905ed49726
1 changed files with 1 additions and 2 deletions
|
|
@ -724,8 +724,7 @@ $tmpforcreatebutton = dol_getdate(dol_now(), true);
|
|||
|
||||
$newparam = '&month='.str_pad($month, 2, "0", STR_PAD_LEFT).'&year='.$tmpforcreatebutton['year'];
|
||||
|
||||
//$param='month='.$monthshown.'&year='.$year;
|
||||
$hourminsec = dol_print_date(dol_mktime(10, 0, 0, 1, 1, 1970, 'gmt'), '%H', 'gmt').'0000'; // Set $hourminsec to '100000' to auto set hour to 10:00 at creation
|
||||
$hourminsec = dol_print_date(dol_now(), '%H%M', 'tzserver').'00';
|
||||
|
||||
$url = DOL_URL_ROOT.'/comm/action/card.php?action=create';
|
||||
$url .= '&datep='.sprintf("%04d%02d%02d", $tmpforcreatebutton['year'], $tmpforcreatebutton['mon'], $tmpforcreatebutton['mday']).$hourminsec;
|
||||
|
|
|
|||
Loading…
Reference in a new issue