Chromium Code Reviews| Index: chrome/browser/ui/views/ash/screenshot_taker.cc |
| diff --git a/chrome/browser/ui/views/ash/screenshot_taker.cc b/chrome/browser/ui/views/ash/screenshot_taker.cc |
| index ed2e6c1ae90e81ab809334c299a9a729b475c697..3414ce9921b77d4b9a3b183205e626160280c5a2 100644 |
| --- a/chrome/browser/ui/views/ash/screenshot_taker.cc |
| +++ b/chrome/browser/ui/views/ash/screenshot_taker.cc |
| @@ -52,11 +52,11 @@ std::string GetScreenshotFileName(bool use_24hour_clock) { |
| // for non-English locales. |
| // TODO(mukai): integrate this logic somewhere time_formatting.h |
| std::string file_name = base::StringPrintf( |
| - "Screenshot_%d-%02d-%02d_", now.year, now.month, now.day_of_month); |
| + "Screenshot %d-%02d-%02d ", now.year, now.month, now.day_of_month); |
| if (use_24hour_clock) { |
| file_name.append(base::StringPrintf( |
| - "%02d:%02d:%02d.png", now.hour, now.minute, now.second)); |
| + "%d:%02d:%02d.png", now.hour, now.minute, now.second)); |
|
Daniel Erat
2012/05/18 19:32:51
24-hour times retain a leading zero: http://en.wik
Jun Mukai
2012/05/18 20:21:30
Gosh, thanks for pointing... Fixed.
|
| } else { |
| int hour = now.hour; |
| if (hour > 12) { |
| @@ -65,7 +65,7 @@ std::string GetScreenshotFileName(bool use_24hour_clock) { |
| hour = 12; |
| } |
| file_name.append(base::StringPrintf( |
| - "%02d:%02d:%02d_", hour, now.minute, now.second)); |
| + "%d:%02d:%02d ", hour, now.minute, now.second)); |
| file_name.append((now.hour >= 12) ? "PM" : "AM"); |
| file_name.append(".png"); |
| } |