Skip to content
Snippets Groups Projects
Commit 46ba803c authored by Robert Goldmann's avatar Robert Goldmann
Browse files

Fixed #474 - quick date range "until today"

parent b279177e
No related branches found
No related tags found
No related merge requests found
Pipeline #2096 passed
...@@ -368,7 +368,7 @@ chart.quick.all=Alle ...@@ -368,7 +368,7 @@ chart.quick.all=Alle
chart.quick.last.week.days=Letzte 7 Tage chart.quick.last.week.days=Letzte 7 Tage
chart.quick.last.month.days=Letzte 30 Tage chart.quick.last.month.days=Letzte 30 Tage
chart.quick.last.year.days=Letzte 365 Tage chart.quick.last.year.days=Letzte 365 Tage
chart.quick.last.three.months=Letzte 3 Monate chart.quick.until.today=Alle bis heute
chart.script.default=/* This list will be dynamically filled with all the transactions between\n \ chart.script.default=/* This list will be dynamically filled with all the transactions between\n \
* the start and and date you select on the "Show Chart" page\n \ * the start and and date you select on the "Show Chart" page\n \
......
...@@ -367,7 +367,7 @@ chart.quick.all=All ...@@ -367,7 +367,7 @@ chart.quick.all=All
chart.quick.last.week.days=Last 7 days chart.quick.last.week.days=Last 7 days
chart.quick.last.month.days=Last 30 days chart.quick.last.month.days=Last 30 days
chart.quick.last.year.days=Last 365 days chart.quick.last.year.days=Last 365 days
chart.quick.last.three.months=Last 3 months chart.quick.until.today=Until today
chart.script.default=/* This list will be dynamically filled with all the transactions between\n \ chart.script.default=/* This list will be dynamically filled with all the transactions between\n \
* the start and and date you select on the "Show Chart" page\n \ * the start and and date you select on the "Show Chart" page\n \
......
...@@ -189,7 +189,7 @@ function handleQuickDate(element, pickerStartDate, pickerEndDate) ...@@ -189,7 +189,7 @@ function handleQuickDate(element, pickerStartDate, pickerEndDate)
endDate = moment(); endDate = moment();
break; break;
case '7': case '7':
startDate = moment().subtract(3, 'months'); startDate = moment("2000-01-01");
endDate = moment(); endDate = moment();
break; break;
} }
......
...@@ -93,7 +93,7 @@ ...@@ -93,7 +93,7 @@
<td class="quick-date" data-quick="4">${locale.getString("chart.quick.last.week.days")}</td> <td class="quick-date" data-quick="4">${locale.getString("chart.quick.last.week.days")}</td>
<td class="quick-date" data-quick="5">${locale.getString("chart.quick.last.month.days")}</td> <td class="quick-date" data-quick="5">${locale.getString("chart.quick.last.month.days")}</td>
<td class="quick-date" data-quick="6">${locale.getString("chart.quick.last.year.days")}</td> <td class="quick-date" data-quick="6">${locale.getString("chart.quick.last.year.days")}</td>
<td class="quick-date" data-quick="7">${locale.getString("chart.quick.last.three.months")}</td> <td class="quick-date" data-quick="7">${locale.getString("chart.quick.until.today")}</td>
</tr> </tr>
</table> </table>
</div> </div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment