Skip to content

Commit cb3fafd

Browse files
committed
HDFS-17729. Inconsistent mtime in the results of -stat and -ls command due to different TimeZone.
1 parent 22b8fcd commit cb3fafd

File tree

1 file changed

+0
-1
lines changed
  • hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/shell

1 file changed

+0
-1
lines changed

hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/Stat.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ public static void registerCommands(CommandFactory factory) {
7373
protected final SimpleDateFormat timeFmt;
7474
{
7575
timeFmt = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
76-
timeFmt.setTimeZone(TimeZone.getTimeZone("UTC"));
7776
}
7877

7978
// default format string

0 commit comments

Comments
 (0)