| Index: google_apis/drive/time_util.cc
|
| diff --git a/google_apis/drive/time_util.cc b/google_apis/drive/time_util.cc
|
| index 5a559cc08fed7f726b4baae3bae1d336709e68ef..806e15889ede98dd49f7cf64433ed2f1f7393fa1 100644
|
| --- a/google_apis/drive/time_util.cc
|
| +++ b/google_apis/drive/time_util.cc
|
| @@ -143,11 +143,13 @@ bool GetTimeFromString(const base::StringPiece& raw_value,
|
| return false;
|
|
|
| if (has_timezone) {
|
| - *parsed_time = base::Time::FromUTCExploded(exploded);
|
| + if (!base::Time::FromUTCExploded(exploded, parsed_time))
|
| + return false;
|
| if (offset_to_utc_in_minutes != 0)
|
| *parsed_time -= base::TimeDelta::FromMinutes(offset_to_utc_in_minutes);
|
| } else {
|
| - *parsed_time = base::Time::FromLocalExploded(exploded);
|
| + if (!base::Time::FromLocalExploded(exploded, parsed_time))
|
| + return false;
|
| }
|
|
|
| return true;
|
|
|