Actions
Bug #5347
closedWDateEdit does no honor locale
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;·
Updated by Roel Standaert over 7 years ago
- Status changed from New to InProgress
- Assignee set to André Jacobs
Updated by André Jacobs over 7 years ago
- Status changed from InProgress to Implemented @Emweb
Updated by Koen Deforche over 7 years ago
- Status changed from Implemented @Emweb to Resolved
Updated by Roel Standaert about 7 years ago
- Status changed from Resolved to Closed
Actions