Project

General

Profile

Actions

Improvements #14074

closed
MV RM

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

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

Added by Matthias Van Ceulebroeck 11 months ago. Updated about 2 months ago.

Status:
Closed
Priority:
Normal
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.

RM Updated by Romain Mardulyn 10 months ago Actions #1

  • Status changed from New to InProgress
  • Assignee set to Romain Mardulyn

RM Updated by Romain Mardulyn 10 months ago Actions #2

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

RM Updated by Romain Mardulyn 5 months ago Actions #3

  • Target version changed from 4.13.1 to 4.13.2

RM Updated by Romain Mardulyn 5 months ago Actions #4

  • Target version changed from 4.13.2 to 4.13.3

RM Updated by Romain Mardulyn 4 months ago Actions #5

  • Target version changed from 4.13.3 to 4.14.0

ED Updated by emil de keyser 2 months ago Actions #6

  • Assignee set to emil de keyser

ED Updated by emil de keyser 2 months ago Actions #7

  • Status changed from Review to Resolved
  • Assignee changed from emil de keyser to Romain Mardulyn

RM Updated by Romain Mardulyn 2 months ago Actions #8

  • Status changed from Resolved to Implemented @Emweb

RM Updated by Romain Mardulyn about 2 months ago Actions #9

  • Status changed from Implemented @Emweb to Closed
Actions

Also available in: PDF Atom