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

Unified Diff: ui/file_manager/file_manager/background/js/media_import_handler.js

Issue 879913005: Files.app: Fix date string generation for cloud import destinations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/file_manager/file_manager/background/js/media_import_handler.js
diff --git a/ui/file_manager/file_manager/background/js/media_import_handler.js b/ui/file_manager/file_manager/background/js/media_import_handler.js
index 0135363a2493de1a1392f2277b1cf3c93141a121..036e60d9fe7c4120488ad3a0a9b59ed65c536418 100644
--- a/ui/file_manager/file_manager/background/js/media_import_handler.js
+++ b/ui/file_manager/file_manager/background/js/media_import_handler.js
@@ -497,7 +497,7 @@ importer.MediaImportHandler.defaultDestination.getOrCreateImportDestination_ =
var date = new Date();
var year = date.getFullYear().toString();
// Months are 0-based, but days aren't.
- var month = padAndConvert(date.getMonth()) + 1;
+ var month = padAndConvert(date.getMonth() + 1);
Steve McKay 2015/01/28 16:39:26 I think we'll want to do this in a locale sensitiv
Ben Kwa 2015/01/28 20:58:59 Per offline discussion, we'll go with YYYY-MM-DD f
var day = padAndConvert(date.getDate());
return year + '-' + month + '-' + day;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698