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:
Laurent Destailleur 2024-03-15 13:23:23 +01:00 committed by GitHub
commit 905ed49726
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;