Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » Wrong time in CDateTime
Wrong time in CDateTime [message #592653] Wed, 05 November 2008 14:06
Alex Shterev is currently offline Alex ShterevFriend
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
Previous Topic:Wrong time in CDateTime
Next Topic:Grid Row Span
Goto Forum:
  


Current Time: Thu Apr 25 00:10:19 GMT 2024

Powered by FUDForum. Page generated in 0.16711 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top