Project

General

Profile

Actions

Improvements #14074

open

Make `WDate(Time)::fromString` also take localization into account

Added by Matthias Van Ceulebroeck 3 days ago. Updated 1 day ago.

Status:
Review
Priority:
Normal
Assignee:
-
Target version:
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.

Actions #1

Updated by Romain Mardulyn 1 day ago

  • Status changed from New to InProgress
  • Assignee set to Romain Mardulyn
Actions #2

Updated by Romain Mardulyn 1 day ago

  • Status changed from InProgress to Review
  • Assignee deleted (Romain Mardulyn)
Actions

Also available in: Atom PDF