Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 483833

Summary: Weekday on 29th February of leapyears shown wrong
Product: [RT] RAP Reporter: orin iut <orin_iut>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: trivial    
Priority: P3    
Version: 2.0   
Target Milestone: 3.1 M4   
Hardware: PC   
OS: Windows 10   
Whiteboard: sr302
Attachments:
Description Flags
Wrong day of week none

Description orin iut CLA 2015-12-07 12:46:20 EST
Created attachment 258488 [details]
Wrong day of week

DateTime Widget shows wrong Weekday when 29th February 2016 (or any other leap year) is selected. It happened on all my browsers with various combinations of Linux/Windows and IE/Firefox/Chrome.

For me, it happened on my RAP 2.0 Application as well. I could easily reproduce this on the RWT controls demo (RAP 3.0) as well: http://rap.eclipsesource.com/demo/release/controls/#DateTime

Please see on the attached screenshot that 29th February is a Tuesday, although, it should actually be a Monday.

As far as my application (RAP 2.0) was concerned, the displayed day-of-week was wrong but I could retrieve the correct epoch timestamp from the DateTime widget.
Comment 1 Ivan Furnadjiev CLA 2015-12-08 07:14:10 EST
Fixed with change https://git.eclipse.org/r/#/c/62176/
Comment 2 Ivan Furnadjiev CLA 2016-02-01 04:45:54 EST
Backported to 3.0-maintenance branch with change https://git.eclipse.org/r/#/c/64969/