diff --git a/src/main/java/org/springframework/shell/commands/DateCommands.java b/src/main/java/org/springframework/shell/commands/DateCommands.java index 568ff2e4..bc3d11cd 100644 --- a/src/main/java/org/springframework/shell/commands/DateCommands.java +++ b/src/main/java/org/springframework/shell/commands/DateCommands.java @@ -32,7 +32,7 @@ public class DateCommands implements CommandMarker { @CliCommand(value = { "date" }, help = "Displays the local date and time") public String date() { - return DateFormat.getDateTimeInstance(DateFormat.FULL, DateFormat.FULL, Locale.US).format(new Date()); + return DateFormat.getDateTimeInstance(DateFormat.FULL, DateFormat.FULL, Locale.getDefault()).format(new Date()); } }