Project

General

Profile

RFC 822 date time parsing

Added by Emeric Poupon 3 months ago

Hello,

Looks like it is quite easy to output a RFC822 date time using Wt::WDateTime::toString with localizedString set to false.
But looks like there is no equivalent for the fromString method? According to the code, localized strings are used.

What do you think?


Replies (1)

RE: RFC 822 date time parsing - Added by Matthias Van Ceulebroeck 7 days ago

Hi Emeric,

apologies for the delay.

I believe you are looking at WDateTime::fromString(WString& input, WString& format)?
From a quick glance, this seems to indeed always use localized strings. I agree that since the equivalent for toString exists, we should also consider creating functionality that does the parsing without localization.

I have added WT-14074

Best,
Matthias

    (1-1/1)