Correction sur l'ajout de sauts sur 1 jour.
This commit is contained in:
@@ -11,10 +11,11 @@ export class DateService {
|
||||
public AddDays(currentDate: Date, nbDays: number): Date {
|
||||
const totalMilliSeconds = nbDays * this.milliSeconInDay;
|
||||
const currentTime = currentDate.getTime();
|
||||
const tmpDate = new Date(currentDate.getTime());
|
||||
|
||||
currentDate.setTime(currentTime + totalMilliSeconds);
|
||||
tmpDate.setTime(currentTime + totalMilliSeconds);
|
||||
|
||||
return currentDate;
|
||||
return tmpDate;
|
||||
}
|
||||
|
||||
public DiffBetweenDates(beginDate: Date, endDate: Date): number {
|
||||
|
||||
Reference in New Issue
Block a user