Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Object-Pascal / Delphi-Language (https://www.delphipraxis.net/32-object-pascal-delphi-language/)
-   -   Ist DateUtils.ISO8601ToDate in 10.4.2 gefixt? (https://www.delphipraxis.net/208188-ist-dateutils-iso8601todate-10-4-2-gefixt.html)

Rolf Frei 22. Jun 2021 19:21

Delphi-Version: 10.3 Rio

Ist DateUtils.ISO8601ToDate in 10.4.2 gefixt?
 
Ich nutze noch 10.3 und habe folgendes JSON Datum nach ISO8601:
Code:
"timestamp":"2021-06-22T17:16:57+0000"
Nun habe ich das Problem, dass bei der Deserialisierung dieses Feldes wegen dem Timeoffset ein Fehler in DateUlis.ISO8601ToDate auftritt. Da wird +00:00 verlangt, aber gemäss ISO müsste der String ohne ":" doch auch richtig sein.

Kann mal jemand in 10.4.2 testen ob das seit 10.3 gefixt wurde und nun mit diesem Format zurecht kommt?

Der schöne Günther 22. Jun 2021 19:46

AW: Ist DateUtils.ISO8601ToDate in 10.4.2 gefixt?
 
Ja, und zwar bereits in 10.3.3
https://quality.embarcadero.com/browse/RSP-26545

Rolf Frei 23. Jun 2021 15:33

AW: Ist DateUtils.ISO8601ToDate in 10.4.2 gefixt?
 
Ok danke.


Alle Zeitangaben in WEZ +1. Es ist jetzt 21:40 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz