Change Dashboard Time

Greetings @Lucas_Pinheiro !

The following should generate a date/time entry field in your Custom HTML Block, which, upon clicking Submit, sets the entered time as the dashboard time and refreshes your browser window:

<form method="get" id="myForm">
  <label for="time">Time</label>
  <input type="datetime-local" id="time">
  <button type="submit">Submit</button>
</form>
<script>
  let myDashboard;
  DashboardBlock.on('change', ({ dashboard }) => {
    myDashboard = dashboard;
  });
  document.getElementById('myForm').addEventListener('submit', (e) => {
    e.preventDefault();
    const time = Date.parse(document.getElementById('time').value);
    window.top.location.href = `/dashboards/${myDashboard.id}?t=${time}`;
  });

</script>

Which should look something similar to this:

Let us know if this works for your use-case!

(Kudos to @Dylan_Schuster for the code!)