In arabic, the date gets mangled into something like 032012/06/ because the direction estimator decides it should be LTR. (bug observed on Chrome, Firefox, IE8 at least) Using the default direction seems to work fine. (fix tested on Chrome, Firefox) RTL languages tested: "ar", "iw"
Review by: rchandia@google.com
git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@11046 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/user/src/com/google/gwt/user/datepicker/client/DateBox.java b/user/src/com/google/gwt/user/datepicker/client/DateBox.java
index be232be..fd45d72 100644
--- a/user/src/com/google/gwt/user/datepicker/client/DateBox.java
+++ b/user/src/com/google/gwt/user/datepicker/client/DateBox.java
@@ -287,6 +287,7 @@
box.addBlurHandler(handler);
box.addClickHandler(handler);
box.addKeyDownHandler(handler);
+ box.setDirectionEstimator(false);
popup.addCloseHandler(handler);
setValue(date);
}