Commit 9cc22248 authored by kenobi's avatar kenobi Committed by Commit bot

Files.app: Fix date string generation for cloud import destinations.

BUG=451934

Review URL: https://codereview.chromium.org/879913005

Cr-Commit-Position: refs/heads/master@{#313666}
parent 438db6ae
...@@ -513,7 +513,7 @@ importer.MediaImportHandler.defaultDestination.getOrCreateImportDestination_ = ...@@ -513,7 +513,7 @@ importer.MediaImportHandler.defaultDestination.getOrCreateImportDestination_ =
var date = new Date(); var date = new Date();
var year = date.getFullYear().toString(); var year = date.getFullYear().toString();
// Months are 0-based, but days aren't. // Months are 0-based, but days aren't.
var month = padAndConvert(date.getMonth()) + 1; var month = padAndConvert(date.getMonth() + 1);
var day = padAndConvert(date.getDate()); var day = padAndConvert(date.getDate());
return year + '-' + month + '-' + day; return year + '-' + month + '-' + day;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment