Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/duplicati/duplicati.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Skovhede <kenneth@hexad.dk>2014-10-15 12:21:48 +0400
committerKenneth Skovhede <kenneth@hexad.dk>2014-10-15 12:21:48 +0400
commit91e3a186acda620b055e3bd4ec4fd4496ce6efc0 (patch)
tree23591d647fcb79e615a55f0f6fb833f9524d4a1a
parentb0ad4950157e80940d4a8084ebc2dc16cdd10459 (diff)
Fixed incorrect grouping of backups.
-rw-r--r--Duplicati/Server/webroot/greeno/scripts/restoredialog.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/Duplicati/Server/webroot/greeno/scripts/restoredialog.js b/Duplicati/Server/webroot/greeno/scripts/restoredialog.js
index 72bb66580..8c8f03adc 100644
--- a/Duplicati/Server/webroot/greeno/scripts/restoredialog.js
+++ b/Duplicati/Server/webroot/greeno/scripts/restoredialog.js
@@ -585,13 +585,15 @@ $(document).ready(function() {
var today = dateStamp(now);
var yesterday = dateStamp(new Date(new Date().setDate(now.getDate() - 1)));
var week = dateStamp(new Date(new Date().setDate(now.getDate() - 7)));
- var month = dateStamp(new Date(new Date().setMonth(now.getMonth() - 1)));
+ var thismonth = dateStamp(new Date(new Date().setMonth(now.getMonth() - 1)));
+ var lastmonth = dateStamp(new Date(new Date().setMonth(now.getMonth() - 2)));
var dateBuckets = [
{text:'Today', stamp: today, items: []},
{text: 'Yesterday', stamp: yesterday, items: []},
{text: 'This week', stamp: week, items: []},
- {text: 'This month', stamp: month, items: []}
+ {text: 'This month', stamp: thismonth, items: []},
+ {text: 'Last month', stamp: lastmonth, items: []}
];
var yearBuckets = { };
@@ -604,7 +606,7 @@ $(document).ready(function() {
var inserted = false;
for(var t in dateBuckets) {
- if (stamp > dateBuckets[t].stamp) {
+ if (stamp >= dateBuckets[t].stamp) {
dateBuckets[t].items.push(data[i])
inserted = true;
break;