Yes, it works if I remove timezone part from pattern as suggested by Santiago. This one works<div id="yMail_cursorElementTracker_1588181174404"><br></div><div id="yMail_cursorElementTracker_1588181175068">adatetime := scanDateTime(</div><div id="yMail_cursorElementTracker_1588181245070">     'ddd, dd mmm yyyy hh:mm:ss',</div><div id="yMail_cursorElementTracker_1588181250486">     'Tue, 28 Apr 2020 10:11:12 GMT');</div><div id="yMail_cursorElementTracker_1588181303542"><br></div><div id="yMail_cursorElementTracker_1588181327020">So i guess, we must convert timezone information to local timezone manually.<br><br>Thank you</div><div id="yMail_cursorElementTracker_1588181445937"><br><div id="ymail_android_signature">Zamrony P. Juhara<br>https://v3.juhara.com<br>https://github.com/zamronypj<br><br>Fano Framework<br>https://fanoframework.github.io<br><br>mod_pascal<br>https://zamronypj.github.io/mod_pascal</div> <br> <blockquote style="margin: 0 0 20px 0;"> <div style="font-family:Roboto, sans-serif; color:#6D00F6;"> <div>On Wed, Apr 29, 2020 at 16:40, Santiago A.</div><div><svaa@ciberpiula.net> wrote:</div> </div> <div style="padding: 10px 0 0 20px; margin: 10px 0 0 0; border-left: 1px solid #6D00F6;"> _______________________________________________<br clear="none">fpc-pascal maillist  -  <a shape="rect" ymailto="mailto:fpc-pascal@lists.freepascal.org" href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.org</a><br clear="none"><a shape="rect" href="https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal" target="_blank">https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal</a><br clear="none"> </div> </blockquote></div>