Bug 1066101 - Use correct date for screen shot filename in Responsive Design View. r=jryans

The filename previously used the numeric day of the week instead of the day of
the month.
This commit is contained in:
Chris Adams 2014-09-11 11:32:11 -04:00
parent 7fa68dfb20
commit 1d5771592f

View File

@ -772,7 +772,7 @@ ResponsiveUI.prototype = {
if (!filename) {
let date = new Date();
let month = ("0" + (date.getMonth() + 1)).substr(-2, 2);
let day = ("0" + (date.getDay() + 1)).substr(-2, 2);
let day = ("0" + date.getDate()).substr(-2, 2);
let dateString = [date.getFullYear(), month, day].join("-");
let timeString = date.toTimeString().replace(/:/g, ".").split(" ")[0];
filename = this.strings.formatStringFromName("responsiveUI.screenshotGeneratedFilename", [dateString, timeString], 2);