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

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
widget.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
widget.setPattern("MM.dd.yyyy h:mm a");

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 ===

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 :)

Previous Topic:Wrong time in CDateTime
Next Topic:Grid Row Span
Goto Forum:

Current Time: Wed Feb 21 09:55:58 GMT 2018

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

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