Hi, All
If this is elsewhere in the forum, I apologize, but I’d searched for this previously in the forums, but “now” yields far too many results.) My forum-foo doesn’t seem to be with me on this one.)
<?php $work_days = ($total_projects * 2); ?>
<?php $delivery_days = $work_days; ?>
<?php
$start_day_month =
$this->EE->localize->decode_date('%F',
$this->EE->localize->now + (86400 * $work_days) + 86400);
?>There is more code before this (including a channel tag) and all is working great, and there’s more after this. EXCEPT…
What I would like to be able to do is adjust “NOW” so that I’m always starting at the same time before performing any calculations. As is, the calculation could be off by as much as 23+ hours and change. If someone looks at it @ 12:01 am or 11:59 pm, the resulting calculation will be a day off (not wanting that). We don’t care if it starts our calculation at 12:00 am or 12:00 pm or any other time (we’ll adjust the calculation accordingly), just for it to be fixed, but “today.”
How would I do that, to change “now,” so it is “today” at 12:00 pm or 12:00 am? Would I use something besides “now”?
Thanks in advance!