Wrong time in CDateTime [message #592653] |
Wed, 05 November 2008 14:06 |
Alex Shterev Messages: 20 Registered: April 2010 |
Junior Member |
|
|
Hi,
I don't know if this is a known issue, because I couldn't find a similar
bug in the tracker. I am using the widget in the standard usecase -
initialize the widget, set pattern, load a proper Date object. The code
looks like this:
widget = new CDateTime(composite, CDT.BORDER | CDT.DROP_DOWN
| CDT.COMPACT);
widget.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
widget.setPattern("MM.dd.yyyy h:mm a");
widget.setSelection(newDate);
Let's say the newDate is 25.12.2008 17:45. After loading the widget, the
text fields is set to 25.12.2008 14:58 (correct date, but with the
current time). I tried to debug the CDateTime itself and it does appear
to be a bug of some kind:
===CDateTime:366 ===
calendar.setTime(getPickerSelection());
In this case the calendar has already acquired the correct date and
time, but reloading them from the picker fails (correct date, wrong time).
I am using nebula_cdatetime_0.9.0 on MacOS (Leopard) running Ganymede.
Any comments/suggestions will be appreciated :)
Thanks,
Alex
|
|
|
Powered by
FUDForum. Page generated in 0.16711 seconds