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

Unified Diff: chrome/browser/resources/print_preview/print_preview_page.html

Issue 30443003: Use JS Date().toLocaleDateString() to format date in header. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 2 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 | « chrome/browser/printing/printing_message_filter.cc ('k') | chrome/common/print_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/print_preview/print_preview_page.html
diff --git a/chrome/browser/resources/print_preview/print_preview_page.html b/chrome/browser/resources/print_preview/print_preview_page.html
index 0eab31f0cd4f5e8a1f0e99b628afaafa4ffbbc05..d7a9de8e7237baa47a5fa8d26652fcfe42b505cc 100644
--- a/chrome/browser/resources/print_preview/print_preview_page.html
+++ b/chrome/browser/resources/print_preview/print_preview_page.html
@@ -73,8 +73,10 @@ function setup(options) {
options['bottomMargin']);
footer.style.height = pixels(options['bottomMargin']);
- document.querySelector('#date span').innerText = options['date'];
+ document.querySelector('#date span').innerText =
+ new Date(options['date']).toLocaleDateString();
document.querySelector('#title span').innerText = options['title'];
+
document.querySelector('#url span').innerText = options['url'];
document.querySelector('#page_number span').innerText = options['pageNumber'];
« no previous file with comments | « chrome/browser/printing/printing_message_filter.cc ('k') | chrome/common/print_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698