File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/ftp Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 3131
3232import org .apache .commons .io .function .Uncheck ;
3333import org .apache .commons .lang3 .ArrayUtils ;
34+ import org .apache .commons .lang3 .time .TimeZones ;
3435import org .apache .commons .logging .Log ;
3536import org .apache .commons .logging .LogFactory ;
3637import org .apache .commons .net .ftp .FTPFile ;
@@ -550,7 +551,7 @@ private long getTimestampMillis() throws IOException {
550551 final FtpClient client = abstractFileSystem .getClient ();
551552 if (!mdtmSet && client .hasFeature ("MDTM" )) {
552553 final Instant mdtmInstant = client .mdtmInstant (relPath );
553- final Calendar calendar = Calendar .getInstance (TimeZone . getTimeZone ( " GMT" ) );
554+ final Calendar calendar = Calendar .getInstance (TimeZones . GMT );
554555 final long epochMilli = mdtmInstant .toEpochMilli ();
555556 calendar .setTimeInMillis (epochMilli );
556557 ftpFile .setTimestamp (calendar );
You can’t perform that action at this time.
0 commit comments