Fixtures spell fix currentTime

parent e7cec86c
......@@ -100,13 +100,13 @@ const loadFixtures = async () => {
for (let i = 0; i < 20; i++) {
let currnetTime = new Date()
let currentTime = new Date()
let startdateOfMonth = randomIntFromInterval(20, 24)
let enddateOfMonth = randomIntFromInterval(25, 29)
let deadLineDateOfMonth = randomIntFromInterval(1, 10)
let startDateTime = new Date(currnetTime.getFullYear(), currnetTime.getMonth()+1,startdateOfMonth , randomIntFromInterval(16, 21), 0, 0);
let dueDateTime = new Date(currnetTime.getFullYear(), currnetTime.getMonth()+1,enddateOfMonth, randomIntFromInterval(22, 22), 0, 0);
let deadLine = new Date(currnetTime.getFullYear(), currnetTime.getMonth()+2, deadLineDateOfMonth, randomIntFromInterval(20, 22), 0, 0);
let startDateTime = new Date(currentTime.getFullYear(), currentTime.getMonth()+1,startdateOfMonth , randomIntFromInterval(11, 18), 0, 0);
let dueDateTime = new Date(currentTime.getFullYear(), currentTime.getMonth()+1,startdateOfMonth, randomIntFromInterval(19, 20), 0, 0);
let deadLine = new Date(currentTime.getFullYear(), currentTime.getMonth()+2, enddateOfMonth, randomIntFromInterval(20, 22), 0, 0);
const newDateTimeTask= new DateTimeTask()
newDateTimeTask.dateTimeStart=startDateTime;
newDateTimeTask.dateTimeDue=dueDateTime;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment