| Summary: | DateTime: wrong date if 31.01.2011 | ||
|---|---|---|---|
| Product: | [RT] RAP | Reporter: | Daria Huber <daria.spam> |
| Component: | RWT | Assignee: | Project Inbox <rap-inbox> |
| Status: | RESOLVED DUPLICATE | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | Keywords: | needinfo |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
|
Description
Daria Huber
Which version of RAP are you using? Which style flags are used in widget creation - SWT.CALENDAR, SWT.DATE, SWT.DROP_DOWN? Please specify the exact steps to reproduce it. A snippet will be welcome. RAP Version: 1.3.1 R
Code snippet:
----------------
DateTime dateFrom = new DateTime(composite, SWT.BORDER | SWT.DATE | SWT.DROP_DOWN);
Label label = new Label(composite, "");
addImageLink.addHyperlinkListener(new HyperlinkAdapter() {
@Override
public void linkActivated(org.eclipse.ui.forms.events.HyperlinkEvent e) {
label.setText(dateFrom.getDay() + "." +
dateFrom.getMonth() + "." + );
}
Sorry, my browser is crashed...
RAP Version: 1.3.1 R
Code snippet:
----------------
DateTime dateFrom = new DateTime(composite, SWT.BORDER | SWT.DATE |
SWT.DROP_DOWN);
Label label = new Label(composite, "");
addImageLink.addHyperlinkListener(new HyperlinkAdapter() {
@Override
public void linkActivated(org.eclipse.ui.forms.events.HyperlinkEvent e) {
label.setText(dateFrom.getDay() + "." +
dateFrom.getMonth() + "." +
dateFrom.getYear());
Steps to reproduce:
-------------------
1. Select 31.01.2011
2. Click on addImageLink
3. Label shows 01.01.2011
This bug is a duplicate of bug 315950. The issue has been fixed in 1.4M1. *** This bug has been marked as a duplicate of bug 315950 *** thanks I've attached a patch against 1.3 to bug 315950. *** This bug has been marked as a duplicate of bug 315950 *** |