SHL-153: Date command should assume user localization.

This commit is contained in:
Daniel Cunha
2014-06-19 22:58:59 -03:00
committed by mpollack
parent 6ea4579d69
commit b19c8cecc9

View File

@@ -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());
}
}