Synopsis: | When instantiating a SimpleDateFormat object, specify a Locale |
Language: | Java |
Severity Level: | 2 |
Category: | Design |
Description: |
Be sure to specify a Locale when creating a new instance of SimpleDateFormat.public class Foo { // Should specify Locale.US (or whatever) private SimpleDateFormat sdf = new SimpleDateFormat("pattern"); } |