2.3.0.2 - issues with the date in the new templates, major issue fixed with the start of the week which was changed in #73df92809ab2d7f291b1092ee839f84aeaceae3c
parent
1d4ec3d765
commit
5e80924eb6
|
@ -1004,7 +1004,7 @@
|
|||
{% for day in week.data %}
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<td style="width:134px;">
|
||||
<p id="day">{{day[1]}}</p>
|
||||
</td>
|
||||
<td style=" width: 153px;">
|
||||
|
|
|
@ -86,10 +86,11 @@ export class Modi_Week{
|
|||
|
||||
for(var w in weeks){
|
||||
if(choosenTemplate != "wochenbericht"){
|
||||
weeks[w].start = moment(weeks[w].start).add(-1, "days").format('DD/MM/YYYY');
|
||||
weeks[w].end = moment(moment(weeks[w].start).day(7)).format('DD/MM/YYYY');
|
||||
var tmp = weeks[w].start;
|
||||
weeks[w].start = moment(weeks[w].start).add(0, "days").format('DD/MM/YYYY');
|
||||
weeks[w].end = moment(moment(tmp).day(7)).format('DD/MM/YYYY');
|
||||
}else{
|
||||
weeks[w].start = moment(weeks[w].start).add(-1, "days").format('YYYY-MM-DD');
|
||||
weeks[w].start = moment(weeks[w].start).add(0, "days").format('YYYY-MM-DD');
|
||||
weeks[w].end = moment(moment(weeks[w].start).day(7)).format('YYYY-MM-DD');
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue