Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(90)

Unified Diff: ios/chrome/browser/ui/reading_list/reading_list_collection_view_item.mm

Issue 2845693002: Add month and year to time_format. (Closed)
Patch Set: Address comments Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ui/base/l10n/formatter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/ui/reading_list/reading_list_collection_view_item.mm
diff --git a/ios/chrome/browser/ui/reading_list/reading_list_collection_view_item.mm b/ios/chrome/browser/ui/reading_list/reading_list_collection_view_item.mm
index d4e055cfe8e3369f5d4e6cd814bf10f15a2f6444..270387c294255c91c1b5741cab87acafb63cedc8 100644
--- a/ios/chrome/browser/ui/reading_list/reading_list_collection_view_item.mm
+++ b/ios/chrome/browser/ui/reading_list/reading_list_collection_view_item.mm
@@ -437,9 +437,9 @@ const CGFloat kInfoTextTransparency = 0.38;
// "just now" string.
text = l10n_util::GetNSString(IDS_IOS_READING_LIST_JUST_NOW);
} else {
- text = base::SysUTF16ToNSString(ui::TimeFormat::Simple(
+ text = base::SysUTF16ToNSString(ui::TimeFormat::SimpleWithMonthAndYear(
ui::TimeFormat::FORMAT_ELAPSED, ui::TimeFormat::LENGTH_LONG,
- base::TimeDelta::FromMicroseconds(elapsed)));
+ base::TimeDelta::FromMicroseconds(elapsed), true));
}
[_distillationDateLabel setText:text];
« no previous file with comments | « no previous file | ui/base/l10n/formatter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698