[fpc-pascal] Converting http date back to TDateTime

Zamrony P. Juhara zamronypj at yahoo.com
Wed Apr 29 19:31:00 CEST 2020


Yes, it works if I remove timezone part from pattern as suggested by Santiago. This one works
adatetime := scanDateTime(     'ddd, dd mmm yyyy hh:mm:ss',     'Tue, 28 Apr 2020 10:11:12 GMT');
So i guess, we must convert timezone information to local timezone manually.

Thank you
Zamrony P. Juhara
https://v3.juhara.com
https://github.com/zamronypj

Fano Framework
https://fanoframework.github.io

mod_pascal
https://zamronypj.github.io/mod_pascal 
 
  On Wed, Apr 29, 2020 at 16:40, Santiago A.<svaa at ciberpiula.net> wrote:   _______________________________________________
fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20200429/e837cc4d/attachment.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Untitled
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20200429/e837cc4d/attachment.ksh>


More information about the fpc-pascal mailing list