<p>SSL certs are required to use times in GMT per<br>
<a href="https://www.ietf.org/rfc/rfc5280.txt">https://www.ietf.org/rfc/rfc5280.txt</a> but the mktime() here assumes the<br>
current timezone.</p>

<p>Fix the time_t conversion to be done assuming GMT with timegm() and<br>
only do it once rather than twice.</p>

<p>Display the expiry date and time with ISO format years and give an<br>
offset from GMT and a timezone to be very clear about exactly what time<br>
is being displayed. Time given is correct and now in the machine’s<br>
timezone.</p>

<p>Fix tests to match.</p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/monitoring-plugins/monitoring-plugins/pull/1396'>https://github.com/monitoring-plugins/monitoring-plugins/pull/1396</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>Use GMT timezone in SSL certs</li>
  <li>Fix check_http test time output</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/monitoring-plugins/monitoring-plugins/pull/1396/files#diff-0">plugins/sslutils.c</a>
    (6)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/monitoring-plugins/monitoring-plugins/pull/1396/files#diff-1">plugins/tests/check_http.t</a>
    (8)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/monitoring-plugins/monitoring-plugins/pull/1396.patch'>https://github.com/monitoring-plugins/monitoring-plugins/pull/1396.patch</a></li>
  <li><a href='https://github.com/monitoring-plugins/monitoring-plugins/pull/1396.diff'>https://github.com/monitoring-plugins/monitoring-plugins/pull/1396.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br><a href="https://github.com/monitoring-plugins/monitoring-plugins/pull/1396">Reply to this email on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFQl2aT9xhJlTYyAcmIQnXieshLgwGUIks5pI9XQgaJpZM4GoFA_.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/monitoring-plugins/monitoring-plugins/pull/1396"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>