fixed zone calendar weekday offset
This commit is contained in:
parent
609d47b79b
commit
ef483bcc12
|
@ -78,9 +78,9 @@
|
||||||
<section ng-repeat="day in $ctrl.days" class="day {{day.color}}"
|
<section ng-repeat="day in $ctrl.days" class="day {{day.color}}"
|
||||||
ng-click="$ctrl.select($index)">
|
ng-click="$ctrl.select($index)">
|
||||||
<span ng-if="day.event" vn-tooltip="{{day.event.title}}">
|
<span ng-if="day.event" vn-tooltip="{{day.event.title}}">
|
||||||
{{::day.date | dateTime: 'd'}}
|
{{::day.date | date: 'd'}}
|
||||||
</span>
|
</span>
|
||||||
<span ng-if="!day.event">{{::day.date | dateTime: 'd'}}</span>
|
<span ng-if="!day.event">{{::day.date | date: 'd'}}</span>
|
||||||
</section>
|
</section>
|
||||||
</vn-horizontal>
|
</vn-horizontal>
|
||||||
</vn-vertical>
|
</vn-vertical>
|
||||||
|
|
|
@ -116,9 +116,6 @@ export default class Calendar extends Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
addDay(date, day, color = '') {
|
addDay(date, day, color = '') {
|
||||||
const curDate = new Date();
|
|
||||||
curDate.setHours(0, 0, 0, 0);
|
|
||||||
|
|
||||||
const newDate = new Date(
|
const newDate = new Date(
|
||||||
date.getFullYear(),
|
date.getFullYear(),
|
||||||
date.getMonth(), day);
|
date.getMonth(), day);
|
||||||
|
|
Loading…
Reference in New Issue