Community
Participate
Working Groups
Build Identifier: I habe a dateTime widget. I want to read the date from it and show it in the label. It works fine until i select 31.01.2011. My label shows 01.01.2011. I thought my DateTime to String converter is wrong. But it isn't so. DateTime widget delivers already 01.01.2011. Can you help me? Reproducible: Always
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 ***