<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/121962>121962</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [libc] mktime should handle tm_isdst correctly
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            libc
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          nickdesaulniers
      </td>
    </tr>
</table>

<pre>
    There's a todo in libc/src/time/mktime.cpp about handling tm_isdst.  This is a common bug we've had in google in the past of callers forgetting to set it; and an uninitialized value being handled incorrectly.  That's somewhat orthogonal to handling it at all, but while reading our implementation, I found a TODO so filing a bug to track this.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJxEksFu4zgMhp9GvhANHDmOk4MP2y0M7KmX3he0xVicymIgUSk6Tz-QW3QuEgFRH3-SP-bMayQaTf9s-pcGi3pJY-Tl3VHGEiJTys0s7nN885TI2CEDgooT4AiB58XYKad6Km9k7LS91-Cw3O-AsxQFj9EFjivo9j9nl_UA8OY5A1fUItsmEeaywkfFPwg8ugpfRdZANVJPcMesIDdYMARKGW6SVlLduQKZFFhN9wwYHWCEEjmyMgb-TQ4eGArBTDV7l0O1wiIp0aLhcxeEujeXZaMPjwqS1MsqEUMt8NMEK6AChmDsvzAXhQ_PgSARuvosJQFv90AbRUVliTXvP7hJqcLg7fXlFbLAjXca7o2rgCZc3kE950Pjxs5duys2NB6H7mzPFztcGj8O2Lfnrj91XUfD7WoHOp4v1Nv-YnvCYWl4tK3t22M7HM-nU3c5LLbvh6FzJ9cO2FNrTi1tyOEQwmM7SFobzrnQeLTH69k2AWcKeTeDtV-7tdUWaaz5T3NZszm1gbPmvwRlDbuB9g_9C3wZALKXEtz3uH92Dz9Db0oKo1e9Z9P9Y-xk7LSy-jIfFtmMnWqB7-vpnuQXLWrstOvNxk7fkh-j_RMAAP__523ucQ">