How to set date field with correct timezone
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3563109. --> Reported by: [mortona2k](https://www.drupal.org/user/1029484) >>> <p>When I set a date field using the [current-time] or [current-time:html_datetime] tokens, the value is off.</p> <p>[current-time:html_datetime] has the time offset, which needs to be removed in order to save the date field value, and the time adjusted accordingly.</p> <p>There is a Time Offset plugin mentioned for Tamper in the docs: <a href="https://ecaguide.org/plugins/eca/tamper/actions/eca_tamper_timeoffset/?h=time+offset">https://ecaguide.org/plugins/eca/tamper/actions/eca_tamper_timeoffset/?h=time+offset</a></p> <p>There is an issue for adding that in the Tamper module, but the patch didn't work for me: <a href="https://www.drupal.org/project/tamper/issues/3268276">https://www.drupal.org/project/tamper/issues/3268276</a></p> <p>This ECA issue has a bit of information: <a href="https://www.drupal.org/project/eca/issues/3351165">https://www.drupal.org/project/eca/issues/3351165</a></p>
issue