Project

General

Profile

Actions

Bug #2803

closed

Wt::asString() locale consistency issue with respect to WDate and WDateTime (possibly just a documentation issue)

Added by Bruce Toll about 10 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Benoit Daccache
Target version:
Start date:
03/11/2014
Due date:
% Done:

0%

Estimated time:

Description

The documentation for Wt::asString() indicates that both Wdate and WDateTime default to a "dd/MM/yy" format (for the date). See: http://www.webtoolkit.eu/wt/doc/reference/html/group__modelview.html#ga57b5cadd177847f51eaeb0cee23782c1.

It appears that the documentation is accurate with respect to WDateTime, but that WDate will use the currentLocale.

Ideally, it seems that both should use the currentLocale, but that might pose an issue of backwards compatibility? See also: #1827.

A small test program that demonstrates the current behavior is attached.


Files

test_WBoostAny_locale.C (1.25 KB) test_WBoostAny_locale.C Bruce Toll, 03/11/2014 05:13 PM
Actions #1

Updated by Koen Deforche almost 9 years ago

  • Status changed from New to InProgress
  • Assignee set to Benoit Daccache
Actions #2

Updated by Benoit Daccache almost 9 years ago

  • Status changed from InProgress to Resolved

switched to current locale if not format provided in asString . This should be documented properly in RealeaseNotes

Actions #3

Updated by Koen Deforche over 8 years ago

  • Status changed from Resolved to Closed
Actions #4

Updated by Koen Deforche over 8 years ago

  • Target version set to 3.3.5
Actions

Also available in: Atom PDF