File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/org/opensolaris/opengrok/history Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -417,12 +417,13 @@ boolean supportsSubRepositories() {
417
417
418
418
public DateFormat getDateFormat () {
419
419
return new DateFormat () {
420
+ private final Locale locale = Locale .ENGLISH ;
420
421
private final SimpleDateFormat [] formatters = new SimpleDateFormat [datePatterns .length ];
421
422
422
423
{
423
424
// initialize date formatters
424
425
for (int i = 0 ; i < datePatterns .length ; i ++) {
425
- formatters [i ] = new SimpleDateFormat (datePatterns [i ]);
426
+ formatters [i ] = new SimpleDateFormat (datePatterns [i ], locale );
426
427
/*
427
428
* TODO: the following would be nice - but currently it
428
429
* could break the compatibility with some repository dates
@@ -454,7 +455,7 @@ public Date parse(String source) throws ParseException {
454
455
String .format ("%s with format \" %s\" and locale \" %s\" " ,
455
456
ex1 .getMessage (),
456
457
formatter .toPattern (),
457
- Locale . getDefault (). toString () ),
458
+ locale ),
458
459
ex1 .getErrorOffset ()
459
460
);
460
461
if (head == null || tail == null ) {
You can’t perform that action at this time.
0 commit comments