title: How do I get timezone information of out-of-office/VacationSettings start/endTime?
body: <p>Gmail API request <a href="https://developers.google.com/gmail/api/reference/rest/v1/users.settings/getVacation" rel="nofollow noreferrer">users.settings.getVacation</a></p>
  <pre><code>https://developers.google.com/gmail/api/reference/rest/v1/users.settings/getVacation?apix_params=%7B%22userId%22%3A%22me%22%7D
  </code></pre>
  <p>returns both start and end time in epoch ms. However these int64 numbers are timezone specific, but there is no timezone info included.</p>
  <p>How do I get correct 'midnight' dates?</p>
  <p>For example, these are values for user in GMT+0200 timezone</p>
  <pre><code>  &quot;enableAutoReply&quot;: false,
    &quot;responseSubject&quot;: &quot;OOF&quot;,
    &quot;responseBodyHtml&quot;: &quot;OOF&quot;,
    &quot;restrictToContacts&quot;: false,
    &quot;restrictToDomain&quot;: false,
    &quot;startTime&quot;: &quot;1630188000000&quot;,
    &quot;endTime&quot;: &quot;1630879200000&quot;
  }
  </code></pre>
  <p>which translates in <code>Sat Aug 28 2021 22:00:00 GMT+0000</code> / <code>Sun Aug 29 2021 00:00:00 GMT+0200</code></p>