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

    <tr>
        <th>Summary</th>
        <td>
            [libc] comparing with glibc for ctime, llvm implementation has an offset by 1 hour
        </td>
    </tr>

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

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

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

<pre>
    In `main` branch, not released version:

For `t=0`, glibc's ctime returns `Thu Jan  1 01:00:00 1970\n`, while llvm's ctime returns `Thu Jan  1 00:00:00 1970\n`.

For `t=2147483647`, glibc's ctime returns `Tue Jan 19 04:14:07 2038\n`, while llvm's ctime returns `Tue Jan 19 03:14:07 2038\n`.

It might be better to be consistent with glibc's implementation for compatibility reasons.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUUtFunDAQ_BrzssppbQM-HnhIczopfe4PGNgDV8Y-2Uui5Osrc5F6rVK1fVmEtDOemR2bs5sDUS-aL6I5VXbjJab-3a0uvdtqiNNb_xxAtLhaF0SLMCQbxkWoJwiRIZEnm2mCF0rZxSD0o8CTwI95jqlgWegTihYLavZuGIUyGUZ2K0Ei3lLIZe3bssFXGwAkoBT6EXEfIDuDonkKHwyvi_ME3r-sf6fBz2kOfxCpZG3qo25r8w9qN9qfkR1gLfSjLAMNKNTH_1F7R6M_p_lF7TPD6uaFYSAYiJkScCw_YwzZZabA8Op4uZPu1qunlQJbdjHAJSYY43q17AbnHb9BIptjyIdq6vXU6c5W1EujjFKtrHW19K3WBmkijXo6NnJAY-yxa4202I6K2sr1ClWNnWpQolL60IzmQrYhKTuUODaiRlqt84eSxCGmuXI5b9RL7I6dqrwdyOe9hUrdhKvSx9SX_Ydhm7Oo0bvM-ScDO_Z7c3dAc7q5Si7Mdwnc7JbUyzUK9vc8FpvBBoiXSyaG4Q0kLHFL1ZZ8vzBfcym1Ogt1nh0v23AY4yrU-XbS_fNwTfE7jSzUeXeVhTp_GHvp1Y8AAAD__1S4BrY">