<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    Hi Massimo,<br>
    <br>
    Yes, you're absolutely right. I was trying to solve the problem of
    the user creating the request being East of the server's timezone,
    and accidentally created a problem if the user is West of the
    server's timezone.<br>
    <br>
    The simple fix to this, if you want to patch your server manually,
    is to edit<br>
        /opt/zendto/templates/request.tpl<br>
    and change line 310 from<br>
    <tt>    minDate: 0, // Disallow dates in the past</tt><br>
    to<br>
    <tt>    minDate: -1, // Start at yesterday to avoid timezone
      problems</tt><br>
    <br>
    That should be the only change required.<br>
    <br>
    This fix will be in the next release.<br>
    <br>
    Cheers,<br>
    Jules.<br>
    <br>
    <div class="moz-cite-prefix">On 11/05/2021 11:13, Massimo Forni via
      ZendTo wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:WM!2244ffbbff9002094794ed7c593264fc524cf6bd67963b07ded121faba64e677318d273d22583b6c2ca92b3d12b848c5!@mx.jul.es">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <style type="text/css" style="display:none;">P {margin-top:0;margin-bottom:0;}</style>
      <div style="font-family: Calibri, Arial, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0);">
        I see in the "reqtable" there is a column "Start" with a
        timestamp that is set to the date+time of the locale of the end
        user</div>
      <div style="font-family: Calibri, Arial, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0);">
        <br>
      </div>
      <div style="font-family: Calibri, Arial, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0);">
        In this case it has been set to <tcxspan tcxhref="1620728545"
          title="Call 1620728545 via 3CX">1620728545
        </tcxspan>which is at 10:22:25 UTC</div>
      <div style="font-family: Calibri, Arial, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0);">
        The user created the request at 12:22:xx of his local time
        (09:22:xx UTC)</div>
      <div style="font-family: Calibri, Arial, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0);">
        <br>
      </div>
      <div style="font-family: Calibri, Arial, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0);">
        I suspect there is some timezone miss-calculation somewhere</div>
      <hr style="display:inline-block;width:98%" tabindex="-1">
      <div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt"
          face="Calibri, sans-serif" color="#000000"><b>From:</b> ZendTo
          <a class="moz-txt-link-rfc2396E" href="mailto:zendto-bounces@zend.to"><zendto-bounces@zend.to></a> on behalf of Massimo Forni via
          ZendTo <a class="moz-txt-link-rfc2396E" href="mailto:zendto@zend.to"><zendto@zend.to></a><br>
          <b>Sent:</b> Tuesday, May 11, 2021 11:47<br>
          <b>To:</b> <a class="moz-txt-link-abbreviated" href="mailto:zendto@zend.to">zendto@zend.to</a> <a class="moz-txt-link-rfc2396E" href="mailto:zendto@zend.to"><zendto@zend.to></a><br>
          <b>Cc:</b> Massimo Forni <a class="moz-txt-link-rfc2396E" href="mailto:Massimo.Forni@turboden.it"><Massimo.Forni@turboden.it></a><br>
          <b>Subject:</b> [ZendTo] Not use before?</font>
        <div> </div>
      </div>
      <style type="text/css" style="display:none">p
        {margin-top:0;
        margin-bottom:0}</style>
      <div dir="ltr">
        <div style="font-family:Calibri,Arial,Helvetica,sans-serif;
          font-size:12pt; color:rgb(0,0,0)">
          Hello,</div>
        <div style="font-family:Calibri,Arial,Helvetica,sans-serif;
          font-size:12pt; color:rgb(0,0,0)">
          <br>
        </div>
        <div style="font-family:Calibri,Arial,Helvetica,sans-serif;
          font-size:12pt; color:rgb(0,0,0)">
          I have some strange issue with the latest build.</div>
        <div style="font-family:Calibri,Arial,Helvetica,sans-serif;
          font-size:12pt; color:rgb(0,0,0)">
          If a user with a different timezone (ahead of mine, in this
          case 1 hour) uses the "Request a Drop-off" and I click on the
          link I am presented the following error:</div>
        <div style="font-family:Calibri,Arial,Helvetica,sans-serif;
          font-size:12pt; color:rgb(0,0,0)">
          <img size="94307" tabindex="-1" style="max-width:100%"
            data-outlook-trace="F:2|T:2"
            src="cid:part1.7jVoOEtr.pqY8dS4M@Zend.To" class=""><br>
        </div>
        <div style="font-family:Calibri,Arial,Helvetica,sans-serif;
          font-size:12pt; color:rgb(0,0,0)">
          <br>
        </div>
        <div style="font-family:Calibri,Arial,Helvetica,sans-serif;
          font-size:12pt; color:rgb(0,0,0)">
          Could it be that when zendto generates the link for the
          request it sets a "not use before" field with the users local
          time?</div>
        <p>--</p>
        <table style="width:375px">
          <tbody>
            <tr>
              <td>
                <p><span style="font-family:Calibri Light;
                    font-size:small"><strong>Massimo Forni</strong><br>
                    ICT Manager<br>
                    <br>
                    Mobile: +393474110278<br>
                  </span></p>
                <hr>
                <p><span style="font-family:Calibri Light;
                    font-size:small"><strong>Turboden S.p.A.</strong>
                    <span style="color:red"><strong>I</strong></span>
                    via Cernaia 10 <span style="color:red">
                      <strong>I</strong></span> 25124 Brescia <span
                      style="color:red"><strong>I</strong></span> Italy<br>
                    t. +39 030 3552001 <span style="color:red"><strong>I</strong></span>
                    f. +39 030 3552011<br>
                    <a href="http://www.turboden.com"
                      moz-do-not-send="true">www.turboden.com</a></span></p>
              </td>
            </tr>
            <tr>
              <td style="text-align:justify">
                <p><span style="font-family:Calibri Light;
                    font-size:8pt"><br>
                    <strong>Confidentiality notice</strong>: this
                    message, together with its attachments, may contain
                    strictly confidential and/or legally privileged
                    information and it is destined solely to the
                    intended addressee(s), who only may use it under
                    his/their responsibility. Opinions, conclusions and
                    other information contained in this message, that do
                    not relate to the official business of this firm,
                    shall be considered as not given or endorsed by it.
                    If you have received this communication in error,
                    please notify us immediately by responding to this
                    email and then delete it from your system. Any use,
                    disclosure, copying or distribution of the contents
                    of this communication by a not-intended recipient or
                    in violation of the purposes of this communication
                    is strictly prohibited and may be unlawful.</span></p>
              </td>
            </tr>
          </tbody>
        </table>
      </div>
      <p>--</p>
      <table style="width: 375px;">
        <tbody>
          <tr>
            <td>
              <p><span style="font-family: Calibri Light; font-size:
                  small;"><strong>Massimo Forni</strong><br>
                  ICT Manager<br>
                  <br>
                  Mobile: +393474110278<br>
                </span></p>
              <hr>
              <p><span style="font-family: Calibri Light; font-size:
                  small;"><strong>Turboden S.p.A.</strong>
                  <span style="color: red;"><strong>I</strong></span>
                  via Cernaia 10 <span style="color: red;">
                    <strong>I</strong></span> 25124 Brescia <span
                    style="color: red;"><strong>I</strong></span> Italy<br>
                  t. +39 030 3552001 <span style="color: red;"><strong>I</strong></span>
                  f. +39 030 3552011<br>
                  <a href="http://www.turboden.com"
                    moz-do-not-send="true">www.turboden.com</a></span></p>
            </td>
          </tr>
          <tr>
            <td style="text-align: justify;">
              <p><span style="font-family: Calibri Light; font-size:
                  8pt;"><br>
                  <strong>Confidentiality notice</strong>: this message,
                  together with its attachments, may contain strictly
                  confidential and/or legally privileged information and
                  it is destined solely to the intended addressee(s),
                  who only may use it under his/their responsibility.
                  Opinions, conclusions and other information contained
                  in this message, that do not relate to the official
                  business of this firm, shall be considered as not
                  given or endorsed by it. If you have received this
                  communication in error, please notify us immediately
                  by responding to this email and then delete it from
                  your system. Any use, disclosure, copying or
                  distribution of the contents of this communication by
                  a not-intended recipient or in violation of the
                  purposes of this communication is strictly prohibited
                  and may be unlawful.</span></p>
            </td>
          </tr>
        </tbody>
      </table>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
ZendTo mailing list
<a class="moz-txt-link-abbreviated" href="mailto:ZendTo@zend.to">ZendTo@zend.to</a>
<a class="moz-txt-link-freetext" href="http://jul.es/mailman/listinfo/zendto">http://jul.es/mailman/listinfo/zendto</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">Jules

-- 
Julian Field MEng CEng CITP MBCS MIEEE MACM

'When a man points a finger at someone else, he should remember
 that four of his fingers are pointing at himself.' - Louis Nizer

<a class="moz-txt-link-abbreviated" href="http://www.Zend.To">www.Zend.To</a>
Twitter: @JulesFM
</pre>
  </body>
</html>