mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
7fa68dfb20
commit
1d5771592f
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user