<p>For example, on OSX, if you use %c you get:<br>
pir@shiny> ./plugins/check_http -H <a href="http://www.mozilla.org">www.mozilla.org</a> --onredirect=follow --ssl --sni -C 200000 -4<br>
WARNING - Certificate 'www.mozilla.org' expires in 400 day(s) (Thu 29 Dec 12:00:00 2016).</p>

<p>No timezone listed. You have to know that time is in GMT whereas people generally assume timezone is in the server timezone (which would be PST or other timezones for most of our monitoring servers).</p>

<p>With this code:<br>
    tz = getenv("TZ");<br>
    setenv("TZ", "GMT", 1);<br>
    tzset();<br>
    strftime(timestamp, 50, "%c %z", localtime(&tm_t));<br>
    if (tz)<br>
        setenv("TZ", tz, 1);<br>
    else<br>
        unsetenv("TZ");<br>
    tzset();</p>

<p>I get:<br>
WARNING - Certificate 'www.mozilla.org' expires in 400 day(s) (Thu 29 Dec 12:00:00 2016 +0000).</p>

<p>Which at least lists a time offset from GMT (0 here, since the date is in GMT) and should make it obvious what timezone is and if a timezone is included in %c already the offset is additional information rather than repeating the timezone name.</p>

<p>How does that sound?</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br><a href="https://github.com/monitoring-plugins/monitoring-plugins/pull/1396#issuecomment-159278706">Reply to this email on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFQl2a6_olp7XUHsNRrIMdPyhtMlrClGks5pJGgqgaJpZM4GoFA_.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#issuecomment-159278706"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>