Details
-
Bug
-
Resolution: Not an Issue
-
P4
-
8
-
generic
-
generic
Description
FULL PRODUCT VERSION :
java version "1.8.0_66"
Java(TM) SE Runtime Environment (build 1.8.0_66-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.66-b17, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
Linux kichemaru 3.10.17 #2 SMP Wed Oct 23 16:34:38 CDT 2013 x86_64 Intel(R) Core(TM) i7-5600U CPU @ 2.60GHz GenuineIntel GNU/Linux
A DESCRIPTION OF THE PROBLEM :
The Italian time format seems to be wrong.
We wrote the following class:
import java.text.DateFormat;
import java.util.Locale;
import java.util.Date;
public class ItalyTime {
public static final void main(String[] args) {
Locale locale = Locale.forLanguageTag("it-IT");
Date date = new Date();
DateFormat dateFormat = DateFormat.getDateTimeInstance(DateFormat.MEDIUM, DateFormat.MEDIUM, locale);
System.out.println(dateFormat.format(date));
}
}
And got the following output:
28-set-2016 14.46.17
I am Italian and have never seen the hour, minutes and seconds separated by a dot, but always separated by a colon.
Would it be possible to have this fixed please?
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
We wrote the following class:
import java.text.DateFormat;
import java.util.Locale;
import java.util.Date;
public class ItalyTime {
public static final void main(String[] args) {
Locale locale = Locale.forLanguageTag("it-IT");
Date date = new Date();
DateFormat dateFormat = DateFormat.getDateTimeInstance(DateFormat.MEDIUM, DateFormat.MEDIUM, locale);
System.out.println(dateFormat.format(date));
}
}
And got the following output:
28-set-2016 14.46.17
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
28-set-2016 14:46:17
ACTUAL -
28-set-2016 14.46.17
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
import java.text.DateFormat;
import java.util.Locale;
import java.util.Date;
public class ItalyTime {
public static final void main(String[] args) {
Locale locale = Locale.forLanguageTag("it-IT");
Date date = new Date();
DateFormat dateFormat = DateFormat.getDateTimeInstance(DateFormat.MEDIUM, DateFormat.MEDIUM, locale);
System.out.println(dateFormat.format(date));
}
}
---------- END SOURCE ----------
java version "1.8.0_66"
Java(TM) SE Runtime Environment (build 1.8.0_66-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.66-b17, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
Linux kichemaru 3.10.17 #2 SMP Wed Oct 23 16:34:38 CDT 2013 x86_64 Intel(R) Core(TM) i7-5600U CPU @ 2.60GHz GenuineIntel GNU/Linux
A DESCRIPTION OF THE PROBLEM :
The Italian time format seems to be wrong.
We wrote the following class:
import java.text.DateFormat;
import java.util.Locale;
import java.util.Date;
public class ItalyTime {
public static final void main(String[] args) {
Locale locale = Locale.forLanguageTag("it-IT");
Date date = new Date();
DateFormat dateFormat = DateFormat.getDateTimeInstance(DateFormat.MEDIUM, DateFormat.MEDIUM, locale);
System.out.println(dateFormat.format(date));
}
}
And got the following output:
28-set-2016 14.46.17
I am Italian and have never seen the hour, minutes and seconds separated by a dot, but always separated by a colon.
Would it be possible to have this fixed please?
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
We wrote the following class:
import java.text.DateFormat;
import java.util.Locale;
import java.util.Date;
public class ItalyTime {
public static final void main(String[] args) {
Locale locale = Locale.forLanguageTag("it-IT");
Date date = new Date();
DateFormat dateFormat = DateFormat.getDateTimeInstance(DateFormat.MEDIUM, DateFormat.MEDIUM, locale);
System.out.println(dateFormat.format(date));
}
}
And got the following output:
28-set-2016 14.46.17
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
28-set-2016 14:46:17
ACTUAL -
28-set-2016 14.46.17
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
import java.text.DateFormat;
import java.util.Locale;
import java.util.Date;
public class ItalyTime {
public static final void main(String[] args) {
Locale locale = Locale.forLanguageTag("it-IT");
Date date = new Date();
DateFormat dateFormat = DateFormat.getDateTimeInstance(DateFormat.MEDIUM, DateFormat.MEDIUM, locale);
System.out.println(dateFormat.format(date));
}
}
---------- END SOURCE ----------