Project

General

Profile

Actions

Bug #5347

closed

WDateEdit does no honor locale

Added by Mark Petryk over 7 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
-
Start date:
10/14/2016
Due date:
% Done:

0%

Estimated time:

Description

When applying a WDateEdit to a WTemplateFormView, the default date-format coming out of the editor appears to be in european format, where as the SQL/Model/boost functions are handling the WDate format using WLocale. This creates a problem when attempting to write a WDateEdit to a back-end SQL with the column defined as a WDate type.

To fix the problem within my application I had to create the WDateEdit widget as follows:

539   auto retVal = new Wt::WDateEdit();·                                                                                                                                                                                                                                                                                                                                                                                      
540 ·
541   retVal-> setFormat( Wt::WApplication::instance()-> locale().dateFormat() );·
542 ·
543   return retVal;·
Actions #1

Updated by Roel Standaert over 7 years ago

  • Status changed from New to InProgress
  • Assignee set to André Jacobs
Actions #2

Updated by André Jacobs over 7 years ago

  • Status changed from InProgress to Implemented @Emweb
Actions #3

Updated by Koen Deforche over 7 years ago

  • Status changed from Implemented @Emweb to Resolved
Actions #4

Updated by Roel Standaert about 7 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF