title: Can I parse an OffsetDateTime from an HTML form without asking for the offset?
body: <p>I'm trying to receive a date from a JSP form where a user enters a date and time for an event to start. Each event will occur at that instant (i.e. it will be represented by an <code>OffsetDateTime</code> object so it can be stored in my DB). It seems to me that my options for getting a date/ time from the user so far are to either use <code>&lt;form:input type=&quot;date&quot;/&gt;</code> &amp; <code>&lt;form:input type=&quot;time&quot;/&gt;</code> together or <code>&lt;form:input type=&quot;datetime-local&quot;/&gt;</code>, neither of which supply the offset necessary to accurately represent the moment the event will occur. Is there a way to gather this offset without explicitly prompting the user for their time zone?</p>
  <p>My concern is the following scenario:
  A user in another time zone supplies a date &amp; a time for an event. My controller then uses this date/ time to produce a <code>java.time</code> object to be stored in the database. However, without knowing what the user's offset is, I have no way to know the correct adjustment to make to the timestamp and it will instead be interpreted as my local time.</p>