[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 17:17:22 UTC 2024
https://issues.dlang.org/show_bug.cgi?id=24704
Dlang Bot <dlang-bot at dlang.rocks> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |pull
--- Comment #13 from Dlang Bot <dlang-bot at dlang.rocks> ---
@jmdavis updated dlang/phobos pull request #9047 "Fix issue 24704: Improve
error messages for from*String in std.datetime." fixing this issue:
- 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