[Issue 24704] The error message for DateTime.fromISOExtString says that valid ISO extended strings that it does not support are invalid ISO extended strings

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Aug 16 22:35:57 UTC 2024


https://issues.dlang.org/show_bug.cgi?id=24704

Dlang Bot <dlang-bot at dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #14 from Dlang Bot <dlang-bot at dlang.rocks> ---
dlang/phobos pull request #9047 "Fix issue 24704: Improve error messages for
from*String in std.datetime." was merged into master:

- 2a3374fb3bbb4c246204139c1393b843aafa2d4f by Jonathan M Davis:
  Fix Bugzilla issue 24704: Improve error messages for from*String in
std.datetime.

  The documentation for the from*String functions specifies what they
  accept, and the fromISO*String functions accept ISO or ISO extended
  strings, but it is technically the case that there are ISO and ISO
  extended strings which they do not accept (since the standard specifies
  what the fields should look like for each string but doesn't specify
  that all fields must be present or that any code parsing them must
  accept all variants).

  So, technically, the error messages which have said that the given
  strings are not valid ISO or ISO extended strings are not necessarily
  correct. So, this changes the error messages to remove that ambiguity.

https://github.com/dlang/phobos/pull/9047

--


More information about the Digitalmars-d-bugs mailing list