Skip to content
Snippets Groups Projects
Commit 0d4cc951 authored by Julian's avatar Julian
Browse files

Reformat

parent e53c0e5e
No related branches found
No related tags found
1 merge request!392Resolve "Absence creation form should support datetimes"
......@@ -133,8 +133,12 @@ export default {
},
clearForm() {
this.persons = [];
this.startDate = DateTime.now().startOf("day").toISO({ suppressSeconds: true });
this.endDate = DateTime.now().endOf("day").toISO({ suppressSeconds: true });
this.startDate = DateTime.now()
.startOf("day")
.toISO({ suppressSeconds: true });
this.endDate = DateTime.now()
.endOf("day")
.toISO({ suppressSeconds: true });
this.comment = "";
this.absenceReason = "";
},
......
......@@ -124,7 +124,7 @@ export default {
if (start.day !== end.day) return;
return end.minus({ minutes: 5, }).toFormat("HH:mm");
return end.minus({ minutes: 5 }).toFormat("HH:mm");
},
minEndTime() {
// Only if on the same day
......@@ -133,7 +133,7 @@ export default {
if (start.day !== end.day) return;
return start.plus({ minutes: 5, }).toFormat("HH:mm");
return start.plus({ minutes: 5 }).toFormat("HH:mm");
},
},
};
......
from datetime import datetime
from django.core.exceptions import PermissionDenied
import graphene
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment