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

Bug 246246

Summary: RTL DateTime has wrong format
Product: [Eclipse Project] Platform Reporter: Grant Gayed <grant_gayed>
Component: SWTAssignee: Carolyn MacLeod <carolynmacleod4>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: ericwill
Version: 3.4Keywords: triaged
Target Milestone: ---   
Hardware: PC   
OS: Linux-GTK   
Whiteboard:
Attachments:
Description Flags
datetime.PNG none

Description Grant Gayed CLA 2008-09-04 12:43:53 EDT
- run the ControlExample and go to the DateTime tab
- in my case the current date is shown as 9/4/2008 (Sept. 4th)
- press the SWT.RIGHT_TO_LEFT radio, and the control's content becomes "4/2008/9"
  -> I'm not sure of what this should be for RTL, but I don't think the year should end up in the middle
Comment 1 Grant Gayed CLA 2008-09-04 12:48:04 EDT
I also notice that for style SWT.DATE the text becomes right-aligned when RTL is selected, but for style SWT.TIME it does not.  On win32 both of these styles become right-aligned when RTL.
Comment 2 Carolyn MacLeod CLA 2008-09-04 14:30:01 EDT
Created attachment 111705 [details]
datetime.PNG

SWT.DATE and SWT.TIME are emulated on GTK. I can't look at this right now, but here is a snapshot of what it should look like (snap taken on Windows with RTL).
Comment 3 Eric Williams CLA 2018-05-15 13:45:13 EDT
(In reply to Carolyn MacLeod from comment #2)
> Created attachment 111705 [details]
> datetime.PNG
> 
> SWT.DATE and SWT.TIME are emulated on GTK. I can't look at this right now,
> but here is a snapshot of what it should look like (snap taken on Windows
> with RTL).

GTK3 behaves like this now.