From b19c8cecc9f517382ba5fca1bb10162e313d4a87 Mon Sep 17 00:00:00 2001 From: Daniel Cunha Date: Thu, 19 Jun 2014 22:58:59 -0300 Subject: [PATCH] SHL-153: Date command should assume user localization. --- .../java/org/springframework/shell/commands/DateCommands.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); } }