I use this simple code to get dateTime pattern:
((SimpleDateFormat) DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.MEDIUM)).toPattern()
For US locale results for Linux and Windows are equal. And for RU / UK locales they are different!
US: Windows: M/d/yy h:mm:ss a Linux: M/d/yy, h:mm:ss a
UK: Windows: dd/MM/yy HH:mm:ss Linux: dd/MM/y, HH:mm:ss
RU: Windows:dd.MM.yy H:mm:ss Linux: dd.MM.y, H:mm:ss
What's the reason and what to do?
UPD: SimpleDateFormat and locale based format string has no answers to my question. I need String pattern - and I can't get it using DateTimeFormater class.