Skip to content

Commit

Permalink
HDFS-17729. Inconsistent mtime in the results of -stat and -ls comman…
Browse files Browse the repository at this point in the history
…d due to different TimeZone. (apache#7405) Contributed by hfutatzhanghb.

Signed-off-by: Shilun Fan <[email protected]>
  • Loading branch information
hfutatzhanghb authored Feb 22, 2025
1 parent 0dd9bf8 commit ca08047
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.LinkedList;
import java.util.TimeZone;

import org.apache.hadoop.classification.InterfaceAudience;
import org.apache.hadoop.classification.InterfaceStability;
Expand Down Expand Up @@ -73,7 +72,6 @@ public static void registerCommands(CommandFactory factory) {
protected final SimpleDateFormat timeFmt;
{
timeFmt = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
timeFmt.setTimeZone(TimeZone.getTimeZone("UTC"));
}

// default format string
Expand Down

0 comments on commit ca08047

Please sign in to comment.