| Index: net/ftp/ftp_util.cc
|
| diff --git a/net/ftp/ftp_util.cc b/net/ftp/ftp_util.cc
|
| index 00b23b7c10b771daea8da81324fbc4fcc9f4249a..c61d986442b2863e0f250b620e84cd753d792a03 100644
|
| --- a/net/ftp/ftp_util.cc
|
| +++ b/net/ftp/ftp_util.cc
|
| @@ -272,7 +272,7 @@ bool FtpUtil::LsDateListingToTime(const base::string16& month,
|
|
|
| // Guess the year.
|
| base::Time::Exploded current_exploded;
|
| - current_time.LocalExplode(¤t_exploded);
|
| + current_time.UTCExplode(¤t_exploded);
|
|
|
| // If it's not possible for the parsed date to be in the current year,
|
| // use the previous year.
|
| @@ -285,8 +285,8 @@ bool FtpUtil::LsDateListingToTime(const base::string16& month,
|
| }
|
| }
|
|
|
| - // We don't know the time zone of the listing, so just use local time.
|
| - *result = base::Time::FromLocalExploded(time_exploded);
|
| + // We don't know the time zone of the listing, so just use UTC.
|
| + *result = base::Time::FromUTCExploded(time_exploded);
|
| return true;
|
| }
|
|
|
| @@ -348,8 +348,8 @@ bool FtpUtil::WindowsDateListingToTime(const base::string16& date,
|
| }
|
| }
|
|
|
| - // We don't know the time zone of the server, so just use local time.
|
| - *result = base::Time::FromLocalExploded(time_exploded);
|
| + // We don't know the time zone of the server, so just use UTC.
|
| + *result = base::Time::FromUTCExploded(time_exploded);
|
| return true;
|
| }
|
|
|
|
|