| Index: chrome/browser/chromeos/gdata/gdata_util.cc
|
| diff --git a/chrome/browser/chromeos/gdata/gdata_util.cc b/chrome/browser/chromeos/gdata/gdata_util.cc
|
| index 40cb2c1c0ec06bc1367ec66b2b2674fcb442f929..ca2aa1fbde8e648c20a45910264aebb5164e4754 100644
|
| --- a/chrome/browser/chromeos/gdata/gdata_util.cc
|
| +++ b/chrome/browser/chromeos/gdata/gdata_util.cc
|
| @@ -567,5 +567,14 @@ bool GetTimeFromString(const base::StringPiece& raw_value,
|
| return true;
|
| }
|
|
|
| +std::string FormatTimeAsString(const base::Time& time) {
|
| + base::Time::Exploded exploded;
|
| + time.UTCExplode(&exploded);
|
| + return base::StringPrintf(
|
| + "%04d-%02d-%02dT%02d:%02d:%02d.%03dZ",
|
| + exploded.year, exploded.month, exploded.day_of_month,
|
| + exploded.hour, exploded.minute, exploded.second, exploded.millisecond);
|
| +}
|
| +
|
| } // namespace util
|
| } // namespace gdata
|
|
|