Actions
Improvements #14074
openMake `WDate(Time)::fromString` also take localization into account
Start date:
10/28/2025
Due date:
% Done:
0%
Estimated time:
Description
When producing output from a WDate, or WDateTime using toString() there exists the option to use localization. In this case, Wt will look for messages with id of e.g. Wt.WDate.Monday to resolve the correct name.
A boolean option on the method can disable this, which will fall back to the Wt defaults in English (c.f. to RFC-822).
However, for the parsing side, WDate::fromString() or WDateTime::fromString(), we ONLY take a format, and will always consider the localization. This cannot be disabled.
We should add the option to also allow developers to use localization or not.
Updated by Romain Mardulyn 1 day ago
- Status changed from New to InProgress
- Assignee set to Romain Mardulyn
Updated by Romain Mardulyn 1 day ago
- Status changed from InProgress to Review
- Assignee deleted (Romain Mardulyn)
Actions